@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.aurora-background {
    background: linear-gradient(135deg, #1b3a8e, #33862e, #483081, #943c91, #9c5930);
    background-size: 400% 400%;
    animation: aurora-flow 20s ease infinite;
}

@keyframes aurora-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
}

.submit-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.status-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-size: 1.1rem;
}

.status-icon.show {
    opacity: 1;
    transform: translateY(-50%);
}

#password-strength {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(1rem);
}

#password-strength.show {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
}

#password-strength .bar-container {
    background-color: rgba(255, 255, 255, 0.1);
}

#password-strength .bar {
    border-radius: inherit;
}

.strength-weak .bar { background-color: #ef4444; }
.strength-medium .bar { background-color: #f97316; }
.strength-strong .bar { background-color: #22c55e; }

.strength-weak .strength-text { color: #ef4444; }
.strength-medium .strength-text { color: #f97316; }
.strength-strong .strength-text { color: #22c55e; }


#username-hint, #confirm-password-hint {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    height: auto;
    min-height: 1rem;
}

#username-hint.show, #confirm-password-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

#confirm-password-group {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

#confirm-password-group.show {
    opacity: 1;
    max-height: 100px;
    overflow: visible;
}


.nav-link, .nav-link-mobile {
    position: relative;
    color: #cbd5e1;
    transition: color 0.3s ease-in-out;
}

.nav-link:hover, .nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #818cf8, #a78bfa);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    font-weight: 600;
}

.nav-link-mobile {
    display: block;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.nav-link-mobile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-mobile.active {
    background-color: #4338ca;
    color: white;
}

.logo-container {
    transition: transform 0.3s ease-out;
}

.logo-container:hover {
    transform: scale(1.05);
}

.primary-btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
    background-color: #4f46e5;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.primary-btn-sm:hover {
    background-color: #4338ca;
}