/* Auth Pages Styling */
.auth-main {
    padding: 120px 0 60px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.auth-container {
    background-image: var(--card-gradient);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-thin);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuXzAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuXzApIi8+PC9zdmc+');
    z-index: 0;
}

.auth-header, .auth-body, .auth-footer {
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-body {
    margin-bottom: 30px;
}

.auth-footer {
    border-top: 1px solid var(--border-thin);
    padding-top: 20px;
}

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Form Styling */
.auth-form {
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    transition: all 0.3s ease;
}

.form-control {
    background-color: rgba(var(--primary-rgb), 0.3);
    border: 1px solid var(--border-thin);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 20px;
    transition: all 0.3s ease;
    height: auto;
    font-size: 1rem;
}

.form-control:focus {
    background-color: rgba(var(--primary-rgb), 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
    color: var(--text-primary);
}

.input-group {
    position: relative;
    transition: all 0.3s ease;
}

.input-group-text {
    background-color: rgba(var(--primary-rgb), 0.5);
    border: 1px solid var(--border-thin);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.input-focused .input-group-text {
    color: var(--accent);
    border-color: var(--accent);
}

.form-check-input {
    background-color: rgba(var(--primary-rgb), 0.3);
    border: 1px solid var(--border-thin);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toggle Password Button */
.btn-password-toggle {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 15px;
    transition: all 0.3s ease;
}

.btn-password-toggle:hover {
    color: var(--accent);
}

/* Links Styling */
.forgot-link, .login-link, .register-link, .back-link, .terms-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.forgot-link:hover, .login-link:hover, .register-link:hover, .back-link:hover, .terms-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Button Styles */
.btn-cyber {
    background-image: var(--primary-gradient);
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: var(--primary-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-image: linear-gradient(135deg, #1E4976, var(--primary));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-cyber:hover::before {
    width: 100%;
}

.btn-cyber:hover {
    box-shadow: 0 7px 20px rgba(var(--primary-rgb), 0.4);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-cyber-alt {
    background-image: var(--secondary-gradient);
    border: none;
    color: var(--dark);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: var(--accent-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-cyber-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--accent), var(--secondary));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-cyber-alt:hover::before {
    width: 100%;
}

.btn-cyber-alt:hover {
    box-shadow: 0 7px 20px rgba(var(--accent-rgb), 0.4);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-outline-cyber {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 22px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-outline-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-image: var(--accent-gradient);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-outline-cyber:hover::before {
    width: 100%;
}

.btn-outline-cyber:hover {
    color: var(--dark);
    border-color: transparent;
    transform: translateY(-3px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-thin);
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    color: var(--text-primary);
}

.btn-social:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-social.google {
    background-color: #DB4437;
}

.btn-social.facebook {
    background-color: #4267B2;
}

.btn-social.twitter {
    background-color: #1DA1F2;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.strength-meter-fill[data-strength="0"] {
    width: 20%;
    background-color: #ff4d4d;
}

.strength-meter-fill[data-strength="1"] {
    width: 40%;
    background-color: #ffaa00;
}

.strength-meter-fill[data-strength="2"] {
    width: 60%;
    background-color: #ffff00;
}

.strength-meter-fill[data-strength="3"] {
    width: 80%;
    background-color: #aaff00;
}

.strength-meter-fill[data-strength="4"] {
    width: 100%;
    background-color: #00ff00;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Recovery/Reset Password Specific Styles */
.recovery-icon, .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: rgba(var(--primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    transition: all 0.3s ease;
}

.recovery-icon.success {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.3);
    background-color: rgba(var(--accent-rgb), 0.1);
}

.success-icon {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.3);
    background-color: rgba(var(--accent-rgb), 0.1);
    font-size: 3rem;
    width: 100px;
    height: 100px;
}

.verification-message {
    color: var(--text-secondary);
    font-size: 1rem;
}

.user-email {
    color: var(--accent);
    font-weight: 600;
}

/* Verification Code Input */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.verification-input {
    width: 50px;
    height: 70px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    background-color: rgba(var(--primary-rgb), 0.3);
    border: 1px solid var(--border-thin);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.verification-input:focus {
    background-color: rgba(var(--primary-rgb), 0.5);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
    outline: none;
}

.resend-timer {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.resend-link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.resend-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.resend-link:hover:not(:disabled) {
    color: var(--secondary);
    text-decoration: underline;
}

/* Success Message */
.success-title {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .verification-code-container {
        gap: 5px;
    }
    
    .verification-input {
        width: 40px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .social-login {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .auth-main {
        padding: 100px 0 40px;
    }
    
    .verification-input {
        width: 35px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .recovery-icon, .success-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}