/* Auth Container */
.auth-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
}

.auth-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.auth-card:hover::before {
    left: 100%;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
}

.auth-logo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Form Styles - Updated to fix white text on white background */
.auth-form {
    margin-bottom: 2rem;
}

/* Reset any potential color inheritance */
.auth-container input,
.auth-container input::placeholder,
.auth-container input:focus,
.auth-container input:-webkit-autofill,
.auth-container input:-webkit-autofill:focus {
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.95) inset !important;
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.95) inset !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.input-wrapper {
    position: relative;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    color: #2d3748 !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
    color: #2d3748 !important;
}

/* Additional styling for text input fields to ensure readability */
input.form-control, .form-control {
    color: #2d3748 !important; /* Enforce dark gray text */
    background-color: rgba(255, 255, 255, 0.95) !important; /* Slightly brighter background */
    -webkit-text-fill-color: #2d3748 !important;
    text-fill-color: #2d3748 !important;
    caret-color: #2d3748 !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.form-control::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* Dark theme autofill fixes - enhanced for better readability */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: #2d3748 !important;
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    border-color: #667eea !important;
}

.form-control:-moz-autofill {
    box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    -moz-text-fill-color: #2d3748 !important;
}

/* Add !important to text selection */
.form-control::selection {
    background: rgba(102, 126, 234, 0.3) !important;
    color: #2d3748 !important;
}

.form-control::-moz-selection {
    background: rgba(102, 126, 234, 0.3) !important;
    color: #2d3748 !important;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-control:focus + .input-focus-line {
    width: 100%;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 30px;
    max-height: 30px;
}

.password-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.form-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.form-error i {
    margin-right: 0.5rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    accent-color: #667eea;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Auth Button */
.btn-auth-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-auth-primary:hover::before {
    left: 100%;
}

/* Auth Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

.btn-social {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-google i {
    color: #4285f4;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Email Change Success Banner */
.email-change-success-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-bottom: 3px solid #28a745;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
}

.banner-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.banner-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.banner-text h4 {
    color: #155724;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.banner-text p {
    color: #155724;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Password Requirements */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirement {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.password-requirement.valid {
    color: #10b981;
}

.password-requirement i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.password-requirement.valid i {
    color: #10b981;
}

.password-helper {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.password-helper i {
    margin-right: 0.5rem;
    color: #667eea;
}

/* Terms and Conditions */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
}

.terms-checkbox input {
    margin-top: 0.3rem;
    margin-right: 0.6rem;
    accent-color: #667eea;
}

.terms-checkbox label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.terms-link {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #764ba2;
}

/* Button Styles */
.btn-auth-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 1rem;
}

/* Form Row Styles */
.row {
    margin-left: -10px;
    margin-right: -10px;
    display: flex;
    flex-wrap: wrap;
}

.col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
    flex: 0 0 50%;
    max-width: 50%;
}

.btn-auth-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text, .btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-text i, .btn-loading i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password Requirements */
.password-requirements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.4rem 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.7rem;
}

.requirement-item {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.requirement-item i {
    margin-right: 0.4rem;
    min-width: 1rem;
    text-align: center;
    font-size: 0.7rem;
}

.requirement-item.valid {
    color: rgba(255, 255, 255, 0.9);
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

/* Terms & Conditions */
.terms-group {
    margin-bottom: 1.5rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.3rem;
    margin-right: 0.6rem;
    accent-color: #667eea;
    width: 18px !important;
    height: 18px !important;
    position: relative;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    display: inline-block !important;
    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: white !important;
    border: 2px solid #667eea !important;
    border-radius: 3px;
    z-index: 10;
}

.terms-checkbox input[type="checkbox"]:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.terms-checkbox input[type="checkbox"]:checked:after {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 4px;
    color: white;
    font-size: 14px;
}

.terms-checkbox label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.4;
}

.terms-link {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #764ba2;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0c101f 0%, #151a33 40%, #1c2045 70%, #251f54 100%);
}

.overlay-photo-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.section-dotted-bg {
    position: absolute;
    opacity: 0.35;
    inset: 0;
    background-image: radial-gradient(rgba(102, 126, 234, 0.6) 1.25px, transparent 1.25px);
    background-size: 20px 20px;
    z-index: -1;
}

.animated-line {
    position: absolute;
    width: 3px;
    height: 200%;
    top: -50%;
    background-color: rgba(102, 126, 234, 0.25);
    transform: rotate(45deg);
    z-index: 0;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
    animation: subtle-sway 25s ease-in-out infinite alternate, subtle-opacity 15s ease-in-out infinite alternate;
    --base-opacity: 0.25;
}

@keyframes subtle-sway {
    0% { transform: rotate(var(--rotate-start)); }
    50% { transform: rotate(calc(var(--rotate-start) + var(--rotate-variation))); }
    100% { transform: rotate(var(--rotate-start)); }
}

.animated-line:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    left: 50%;
    top: var(--dot-start, 0%);
    translate: -50% 0;
    background-color: rgba(102, 126, 234, 0.85);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.7);
    border-radius: 50%;
    animation: moving-dot 15s linear infinite alternate both;
}

.animated-line:nth-child(3n+1):before {
    width: 7px;
    height: 7px;
}

.animated-line:nth-child(3n+2):before {
    width: 9px;
    height: 9px;
}

.animated-line:nth-child(odd):before {
    animation-duration: 13s;
}

.animated-line:nth-child(even):before {
    animation-direction: alternate-reverse;
    animation-duration: 17s;
}

.animated-line:nth-child(3n):before {
    animation-duration: 19s;
}

@keyframes subtle-opacity {
    0% { opacity: var(--base-opacity, 0.7); }
    50% { opacity: calc(var(--base-opacity, 0.7) * 1.3); }
    100% { opacity: var(--base-opacity, 0.7); }
}

.animated-line.line-1 {
    left: 5%;
    --rotate-start: 35deg;
    --rotate-variation: 3deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 150%;
    width: 2px;
    animation-delay: -2s;
    animation-duration: 28s, 17s;
}

.animated-line.line-2 {
    left: 15%;
    --rotate-start: 42deg;
    --rotate-variation: 4deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 140%;
    width: 3.5px;
    --base-opacity: 0.7;
    animation-delay: -7s;
    animation-duration: 22s, 13s;
}

.animated-line.line-3 {
    left: 25%;
    --rotate-start: 48deg;
    --rotate-variation: 2.5deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 160%;
    width: 2.5px;
    --base-opacity: 0.8;
    animation-delay: -14s;
    animation-duration: 26s, 19s;
}

.animated-line.line-4 {
    left: 40%;
    --rotate-start: 38deg;
    --rotate-variation: 3.8deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 150%;
    width: 1.8px;
    --base-opacity: 0.9;
    animation-delay: -4s;
    animation-duration: 24s, 15s;
}

.animated-line.line-5 {
    left: 55%;
    --rotate-start: 45deg;
    --rotate-variation: 2.2deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 170%;
    width: 2.8px;
    animation-delay: -19s;
    animation-duration: 29s, 18s;
}

.animated-line.line-6 {
    left: 70%;
    --rotate-start: 40deg;
    --rotate-variation: 3.6deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 160%;
    width: 3.2px;
    --base-opacity: 0.7;
    animation-delay: -8s;
    animation-duration: 27s, 14s;
}

.animated-line.line-7 {
    left: 85%;
    --rotate-start: 43deg;
    --rotate-variation: 4.2deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 170%;
    width: 2.2px;
    --base-opacity: 0.8;
    animation-delay: -11s;
    animation-duration: 23s, 16s;
}

.animated-line.line-8 {
    left: 100%;
    --rotate-start: 35deg;
    --rotate-variation: 3.2deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 180%;
    width: 1.5px;
    --base-opacity: 0.6;
    animation-delay: -15s;
    animation-duration: 30s, 20s;
}

.animated-line.line-9 {
    left: 115%;
    --rotate-start: 45deg;
    --rotate-variation: 2.8deg;
    transform: rotate(var(--rotate-start));
    transform-origin: bottom left;
    height: 190%;
    width: 2.6px;
    --base-opacity: 0.5;
    animation-delay: -3s;
    animation-duration: 25s, 12s;
}

@keyframes moving-dot {
    0% {
        top: var(--dot-start, 0%);
        scale: 0.9;
    }
    50% {
        top: calc(var(--dot-start, 0%) + 50%);
        scale: 1.1;
    }
    100% {
        top: 100%;
        scale: 0.9;
    }
}

/* Success Alert */
.auth-success-alert {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: flex-start;
}

.alert-content i {
    color: #22c55e;
    font-size: 1rem;
    margin-right: 0.6rem;
    margin-top: 0.125rem;
}

.alert-text strong {
    color: #22c55e;
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.alert-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.85rem;
}

/* Password Requirements Styling */
.auth-card-info {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
}

.security-notice {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.security-notice::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.4rem;
    color: #667eea;
    font-size: 0.8rem;
}

.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.8rem;
}

.requirement-item {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
}

.requirement-item i {
    margin-right: 0.4rem;
    min-width: 1rem;
    text-align: center;
    font-size: 0.7rem;
}

.requirement-item.valid {
    color: rgba(255, 255, 255, 0.9);
}

.password-strength {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.4rem;
    border-radius: 6px;
    text-align: center;
}

.password-strength.weak {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.password-strength.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.password-strength.strong {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Password Helper */
.password-helper {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-helper i {
    color: #667eea;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login {
    margin-bottom: 1.5rem;
}

.btn-social {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 40px;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-google i {
    color: #4285f4;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }
    
    .password-requirements {
        grid-template-columns: 1fr;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Auto-fill Detection for Dark Theme - enhanced to ensure text is always readable */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.95) inset !important;
    -webkit-text-fill-color: #2d3748 !important;
    caret-color: #2d3748 !important;
    color: #2d3748 !important;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0c101f 0%, #151a33 40%, #1c2045 70%, #251f54 100%);
}

/* Final override to ensure input text color */
.auth-container input,
.auth-container textarea,
.auth-container select,
.auth-container .form-control {
    color: #2d3748 !important;
    -webkit-text-fill-color: #2d3748 !important;
    text-fill-color: #2d3748 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

/* Final override for checkbox visibility */
#terms {
    opacity: 1 !important;
    visibility: visible !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    position: relative !important;
    display: inline-block !important;
    background-color: white !important;
    border: 2px solid #667eea !important;
    z-index: 999 !important;
}