/* ============================================
   Glassmorphism Auth Pages (Login/Register/Reset)
   Smooth Animations & Glass Look
   ============================================ */

/* Glassmorphism Card */
.register-card,
.reset-card,
.login-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
}

body.dark-mode .register-card,
body.dark-mode .reset-card,
body.dark-mode .login-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-card:hover,
.reset-card:hover,
.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

body.dark-mode .register-card:hover,
body.dark-mode .reset-card:hover,
body.dark-mode .login-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
}

/* Card Header */
.register-header,
.reset-header,
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.icon-wrapper i {
    font-size: 2rem;
}

.register-header h2,
.reset-header h2,
.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.register-header p,
.reset-header p,
.login-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Glassmorphism Input Fields */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.875rem;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .input-group input {
    background: rgba(15, 23, 42, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

body.dark-mode .input-group input:focus {
    background: rgba(15, 23, 42, 0.5);
}

.input-group input:focus + .input-icon,
.input-group:has(input:focus) .input-icon {
    color: var(--primary);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

/* Glassmorphism Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.submit-btn i,
.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Referral Note - Glassmorphism */
.referral-note {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: slideInDown 0.5s ease-out;
}

body.dark-mode .referral-note {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .register-card,
    .reset-card,
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .register-header h2,
    .reset-header h2,
    .login-header h2 {
        font-size: 1.5rem;
    }
}

