* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.register-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.card-header-custom {
    text-align: center;
    margin-bottom: 2rem;
}

.input-group .input-group-text {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: var(--text-muted);
}

.input-group .form-control {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    color: #fff !important;
    padding: 0.7rem 1rem;
}

.form-control:not(.input-group > .form-control) {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 0.7rem 1rem;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    font-size: 1.1rem;
    transition: 0.3s;
}

.toggle-password:hover {
    color: #fff;
}

.password-input {
    padding-right: 45px !important;
}

#toastContainer {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    background: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #6366f1; 
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: translateX(100%);
}

.custom-toast.success { border-left-color: #10b981; }
.custom-toast.success i { color: #10b981; }

.custom-toast.error { border-left-color: #ef4444; }
.custom-toast.error i { color: #ef4444; }

@keyframes slideIn { to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { transform: translateX(100%); opacity: 0; } }

@media (max-width: 576px) {
    .register-card {
        padding: 1.5rem;
    }
}