/* Base Styles */
:root {
    /* --- NEW Accent Colors --- */
    --accent-color: #0ea5e9;        /* Main interactive color */
    --accent-hover: #3b82f6;     /* Darker Goldenrod (DarkGoldenrod) */
    --accent-light: rgba(14, 165, 233, 0.1); /* Light goldenrod */
    --accent-focus: rgba(14, 165, 233, 0.25); /* Focus ring color */
    --accent-text: #fff;           /* Text on accent background */
    --accent-dark: #8b4513;        /* SaddleBrown for contrast/dark mode */

    /* Original Brand Colors (kept for logo) */
    --primary-color: #10a37f;
    --primary-hover: #0d8c6c;
    --primary-light: rgba(16, 163, 127, 0.1);
    --secondary-color: #5c6bc0;
    --secondary-hover: #4a57a7;

    /* General Colors */
    --text-color: #333333;
    --text-light: #555; /* Slightly darker light text */
    --bg-color: #f8f9fa; /* Lighter fallback bg */
    --card-bg: #ffffff;
    --input-bg: #fdfdff; /* Slightly off-white */
    --input-border: #d1d5db; /* Tailwind gray-300 */
    --input-focus-border: var(--accent-color); /* Use accent for focus border */
    --error-color: #dc2626; /* Tailwind red-600 */
    --success-color: #10b981; /* Tailwind emerald-500 */
    --warning-color: #f59e0b; /* Tailwind amber-500 */
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); /* Slightly adjusted shadow */
    --transition: all 0.3s ease;

    /* Password strength colors */
    --strength-weak: #ef4444;    /* red-500 */
    --strength-fair: #f97316;    /* orange-500 */
    --strength-good: #eab308;    /* yellow-500 */
    --strength-strong: #10b981;  /* emerald-500 */

    /* Premium Blue Theme */
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f35;
    --accent-blue: #0ea5e9;
    --accent-cyan: #06b6d4;
    --blue-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #06b6d4 100%);
    --glass-bg: rgba(30, 58, 138, 0.15);
    --glass-border: rgba(59, 130, 246, 0.3);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --button-gradient: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --card-hover: rgba(59, 130, 246, 0.2);
    --header-height: 80px;
}

/* Dark Mode Colors */
.dark-mode {
    --text-color: #e5e7eb; /* gray-200 */
    --text-light: #9ca3af; /* gray-400 */
    --bg-color: #111827;   /* gray-900 */
    --card-bg: #1f2937;   /* gray-800 */
    --input-bg: #374151;   /* gray-700 */
    --input-border: #4b5563; /* gray-600 */
    --input-focus-border: var(--accent-color);
    --accent-light: rgba(14, 165, 233, 0.15);
    --accent-focus: rgba(14, 165, 233, 0.3);
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    --accent-text: #111; /* Dark text on light goldenrod in dark mode if needed */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Accessibility Helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


body {
    background-image: url('ximage.jpeg'); /* Keep user's background */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-color); /* Fallback color */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 15px; /* Ensure padding top/bottom */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Register Container */
.register-container {
    width: 100%;
    max-width: 440px; /* Slightly adjusted mobile max-width */
    padding: 0; /* Padding moved to body */
    z-index: 1;
    transition: max-width 0.4s ease;
}

/* Card */
.register-card {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 35px 30px; /* Adjusted padding */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.4s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Increased blur */
}
.dark-mode .register-card {
    background-color: rgba(31, 41, 55, 0.85); /* Semi-transparent dark */
     border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px; /* Adjusted margin */
}

.logo-icon {
    font-size: 30px; /* Slightly larger */
    margin-right: 10px;
    animation: pulseIcon 3s infinite alternate ease-in-out; /* Smoother pulse */
}

@keyframes pulseIcon {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.logo-text {
    font-size: 26px; /* Slightly larger */
    font-weight: 700;
    /* Keep original brand gradient */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dark-mode .brand-logo .logo-text {
     background: linear-gradient(135deg, #16e5ae, #7c94ff); /* Keep dark mode logo gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.register-header {
    text-align: center;
    margin-bottom: 30px; /* Increased margin */
}

.register-header h1 {
    font-size: 28px; /* Adjusted size */
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.register-header p {
    font-size: 16px; /* Adjusted size */
    color: var(--text-light);
    max-width: 350px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Split Layout Styles */
.register-content-split {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.register-left-column,
.register-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- NEW: Info Panel Styles (Left Column - Desktop) --- */
.info-panel {
    background-color: var(--accent-light);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid var(--accent-focus);
}

.info-panel .info-icon {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: inline-block;
}

.info-panel h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.info-panel p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
}
/* Blinking cursor effect */
#typing-target::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    opacity: 1;
    animation: blink 0.7s infinite;
    color: var(--accent-color);
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dark-mode .info-panel {
    background-color: rgba(37, 41, 51, 0.6); /* Darker accent light */
    border-color: var(--accent-focus);
}
.dark-mode .info-panel .info-icon {
    color: var(--accent-color); /* Keep accent color */
}
.dark-mode .info-panel h2 {
    color: var(--text-color);
}
.dark-mode .info-panel p {
     color: var(--text-light);
}

/* Hide info panel on mobile */
.desktop-only-feature {
    display: none;
}
/* --- End Info Panel Styles --- */

/* Right column form title */
.form-title {
    font-size: 20px; /* Increased size */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
    display: none; /* Hide on mobile by default */
}
.dark-mode .form-title {
    color: var(--text-color);
}

/* Hide the mobile-only divider by default */
.divider-mobile-only {
    display: none;
}

/* Media Query for Two-Column Layout (Desktop) */
@media (min-width: 850px) {
    .register-container {
        max-width: 820px; /* Adjusted width */
    }

    .register-card {
        padding: 40px 45px; /* Adjusted padding */
    }

    .register-content-split {
        flex-direction: row;
        gap: 45px; /* Adjusted gap */
    }

     /* Add vertical separator */
    .register-left-column {
        padding-right: 45px;
        border-right: 1px solid var(--input-border);
        display: flex; /* Ensure flex properties apply */
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
    .dark-mode .register-left-column {
        border-right-color: var(--input-border);
    }

    /* Show form title and info panel on desktop */
    .form-title, .desktop-only-feature {
        display: block;
    }
     .social-login {
         margin-top: 30px; /* Add space below info panel */
     }
}
/* End Media Query */


/* Social Login Section */
.social-login {
    margin-bottom: 20px;
}

.social-title { /* Style for the new title */
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
}

.social-btn i {
    margin-right: 10px;
    font-size: 18px; /* Slightly larger icons */
    width: 20px; /* Ensure consistent icon width */
    text-align: center;
}

/* Google Button */
.google-btn {
    background-color: #fff;
    color: #444;
    border-color: #eaeaea;
}
.google-btn:hover {
    background-color: #f7f7f7;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.dark-mode .google-btn {
    background-color: #374151; /* gray-700 */
    color: #e5e7eb; /* gray-200 */
    border-color: #4b5563; /* gray-600 */
}
.dark-mode .google-btn:hover {
    background-color: #4b5563; /* gray-600 */
}

/* Facebook Button */
.facebook-btn {
    background-color: #1877f2; /* Official Facebook blue */
    color: white;
    border-color: #1877f2;
}
.facebook-btn:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.2);
}
.dark-mode .facebook-btn {
    background-color: #1877f2; /* Keep color in dark mode */
    border-color: #1877f2;
}
.dark-mode .facebook-btn:hover {
     background-color: #166fe5;
}

/* Optional Github Button */
/* .github-btn {
    background-color: #333;
    color: white;
    border-color: #333;
}
.github-btn:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.dark-mode .github-btn {
     background-color: #444;
     border-color: #555;
}
.dark-mode .github-btn:hover {
      background-color: #555;
} */


/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--input-border);
}
.divider::before { margin-right: 10px; }
.divider::after { margin-left: 10px; }

.divider span {
    padding: 0 10px;
    color: var(--text-light);
    font-size: 13px;
    text-transform: lowercase;
    white-space: nowrap;
}
.dark-mode .divider span {
    color: var(--text-light);
}

/* --- Removed Email Login Section --- */
/* .email-login { ... } */
/* .email-login form { ... } */
/* .email-login .input-with-icon { ... } */
/* .email-login-btn { ... } */
/* .email-login-btn:hover { ... } */
/* .success-message { ... } */
/* #email-message { ... } */
/* #email-message.success { ... } */


/* Form Elements (Right Column) */
#register-form {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px; /* Increased spacing */
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > i:first-of-type { /* Target only the main icon */
    position: absolute;
    left: 15px; /* Adjusted position */
    color: var(--text-light);
    font-size: 16px; /* Adjusted size */
    transition: color 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.form-group input:focus + i:first-of-type {
    color: var(--accent-color); /* Use accent color on focus */
}

.form-group input {
    width: 100%;
    padding: 13px 15px 13px 45px; /* Adjusted padding */
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--input-focus-border); /* Use accent for border */
    box-shadow: 0 0 0 3px var(--accent-focus); /* Use accent for focus ring */
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.8; /* Slightly fade placeholder */
}

/* Password Input Specifics */
.password-input {
    position: relative;
}

/* Adjust padding for password inputs to accommodate both icons */
.password-input input {
    padding-right: 75px; /* Increased padding for two icons */
}

/* Toggle Password Icon */
.toggle-password {
    position: absolute;
    right: 40px; /* Position left of the help icon */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 8px; /* Clickable area */
    transition: var(--transition);
    z-index: 2;
}
.toggle-password:hover {
    color: var(--accent-color); /* Use accent color */
}

/* NEW: Password Help Icon */
#password-help-icon {
    position: absolute;
    right: 8px; /* Position to the far right */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 17px; /* Slightly larger */
    padding: 8px;
    transition: var(--transition);
    z-index: 2;
}
#password-help-icon:hover {
    color: var(--accent-color); /* Use accent color */
}

/* Password Strength Meter - Initially Hidden in HTML */
.password-requirements {
    /* display: none; <<< Now controlled by inline style initially */
    margin-top: -10px; /* Pull up slightly */
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--accent-light); /* Use accent light */
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--accent-focus);
    transition: all 0.3s ease; /* Animate visibility */
    opacity: 1; /* Default opacity */
    max-height: 300px; /* For animation */
}

.password-requirements.hidden {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
    overflow: hidden;
}

.dark-mode .password-requirements {
     background-color: rgba(55, 65, 81, 0.7); /* gray-700 with alpha */
     border-color: var(--accent-focus);
}

.strength-meter {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.strength-segment {
    height: 5px; /* Slightly thicker */
    flex: 1;
    background-color: var(--input-border);
    border-radius: 3px;
    transition: background-color 0.4s ease, transform 0.3s ease;
}
.strength-segment.weak { background-color: var(--strength-weak); transform: scaleY(1.1); }
.strength-segment.fair { background-color: var(--strength-fair); transform: scaleY(1.1); }
.strength-segment.good { background-color: var(--strength-good); transform: scaleY(1.1); }
.strength-segment.strong { background-color: var(--strength-strong); transform: scaleY(1.1); }


.strength-text {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    transition: var(--transition);
}

.strength-text #strength-value {
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    color: #fff; /* Default text color on badge */
    transition: background-color 0.3s ease;
}
.strength-text #strength-value.weak { background-color: var(--strength-weak); }
.strength-text #strength-value.fair { background-color: var(--strength-fair); }
.strength-text #strength-value.good { background-color: var(--strength-good); color: #333; } /* Adjust text color for yellow */
.strength-text #strength-value.strong { background-color: var(--strength-strong); }

.requirements-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.requirements-list li {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.requirements-list li.valid {
    color: var(--success-color);
}
.dark-mode .requirements-list li.valid {
     color: var(--strength-strong); /* Use strong green in dark mode for visibility */
}


.requirements-list li i {
    font-size: 12px; /* Icon size */
    margin-right: 6px;
    width: 14px; /* Ensure alignment */
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-light); /* Default icon color */
}
.dark-mode .requirements-list li i {
    color: var(--text-light);
}

.requirements-list li.valid i {
    color: inherit; /* Inherit the green from li.valid */
    transform: scale(1.1);
    /* Using fa-check-double */
}


/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px; /* Increased margin */
}

.terms-checkbox input {
    margin-top: 2px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--accent-color); /* Use accent color */
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* Prevent shrinking */
}

.terms-checkbox label {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5; /* Improved line height */
}

.terms-checkbox a {
    color: var(--accent-color); /* Use accent color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-checkbox a:hover {
    color: var(--accent-hover); /* Use accent hover */
    text-decoration: underline;
}

/* Register Button */
.register-btn {
    width: 100%;
    /* Goldenrod Gradient */
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--accent-text);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600; /* Bolder text */
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Increased gap */
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3); /* Accent shadow */
    position: relative;
    overflow: hidden;
    text-transform: uppercase; /* Uppercase text */
    letter-spacing: 0.5px;
}

.register-btn::before { /* Shine effect */
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.register-btn:hover::before {
    left: 110%;
}

.register-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover) 80%);
    transform: translateY(-2px) scale(1.01); /* Subtle lift and scale */
    box-shadow: 0 6px 15px rgba(218, 165, 32, 0.4); /* Enhanced hover shadow */
}

.register-btn:active {
    transform: translateY(0px) scale(0.99); /* Press down effect */
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

.register-btn:disabled {
    background: linear-gradient(135deg, #cccccc, #aaaaaa);
    color: #777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.register-btn:disabled::before {
    display: none; /* Hide shine on disabled */
}


/* Error Message */
.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 0; /* Reset margin */
    margin-bottom: 15px; /* Space before button */
    padding: 12px 15px;
    background-color: rgba(220, 38, 38, 0.08);
    border-radius: 8px;
    display: none; /* Hidden by default */
    border-left: 4px solid var(--error-color);
    line-height: 1.4;
}
.dark-mode .error-message {
    background-color: rgba(220, 38, 38, 0.15);
}

.error-message.visible { /* Class added by JS */
    display: block;
    animation: fadeIn 0.3s ease-out;
}
/* Keep #register-error visible for JS targetting */
#register-error {
    display: block; /* Will be hidden by default styles unless .visible is added */
    /* Example: Add specific styles if needed */
}


/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-light);
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.login-link:hover {
    background-color: var(--accent-light); /* Use accent light */
}

.login-link a {
    color: var(--accent-color); /* Use accent color */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--accent-hover); /* Use accent hover */
    text-decoration: underline;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

#toggle-theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--input-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex; /* Center icon */
    align-items: center;
    justify-content: center;
}
#toggle-theme-btn:hover {
    color: var(--accent-color); /* Use accent color */
    background-color: var(--accent-light); /* Use accent light */
    transform: rotate(20deg) scale(1.1); /* Add scale on hover */
}
.dark-mode #toggle-theme-btn {
    background-color: var(--input-bg);
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.register-card {
    animation: fadeIn 0.6s ease-out forwards; /* Ensure it stays visible */
    opacity: 0; /* Start hidden for animation */
}


/* Responsive Design Adjustments */
@media (max-width: 849px) { /* Styles for STACKED layout */
    .divider-mobile-only {
        display: flex; /* Show mobile divider */
    }

    .register-left-column {
         padding-right: 0;
         border-right: none;
    }
    .desktop-only-feature {
        display: none; /* Ensure info panel is hidden */
    }
    .social-login {
        margin-top: 0; /* Reset margin */
    }
    .form-title {
        display: block; /* Show form title on mobile too now */
        font-size: 18px; /* Adjust size */
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
     body {
         padding: 20px 10px; /* Less padding on very small screens */
     }
    .register-container {
        max-width: 100%; /* Allow full width */
    }
    .register-card {
        padding: 25px 20px; /* Less padding */
        border-radius: 12px;
    }
    .register-header h1 { font-size: 24px; }
    .register-header p { font-size: 14px; }
    .logo-icon { font-size: 26px; }
    .logo-text { font-size: 22px; }

    .form-group input {
        padding: 12px 12px 12px 40px;
        font-size: 14px; /* Keep readable */
    }
     .password-input input {
        padding-right: 70px; /* Adjust for icons */
     }
     .toggle-password { font-size: 15px; right: 38px; }
     #password-help-icon { font-size: 16px; right: 5px; }

    .requirements-list {
        grid-template-columns: 1fr; /* Stack requirements */
        gap: 6px;
    }

    .register-btn { padding: 13px; font-size: 14px; }
    .social-btn { font-size: 13px; padding: 11px; }
    .social-btn i { font-size: 16px; }

    .theme-toggle { top: 10px; right: 10px; }
    #toggle-theme-btn { font-size: 18px; padding: 6px; }

    .login-link { font-size: 13px; }
    .terms-checkbox label { font-size: 12px; }
    .terms-checkbox input { width: 14px; height: 14px; margin-right: 8px; }
}


/* Improved focus states for accessibility */
.form-group input:focus,
.social-btn:focus-visible, /* Use focus-visible */
.register-btn:focus-visible,
.toggle-password:focus-visible,
#password-help-icon:focus-visible,
#toggle-theme-btn:focus-visible,
.terms-checkbox input:focus-visible + label, /* Style label on checkbox focus */
.login-link a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-focus); /* Consistent focus ring */
    /* For elements without inherent box-shadow */
    border-radius: 4px; /* Add radius to focus outline for links/buttons */
}
/* Specific focus for checkbox label */
.terms-checkbox input:focus-visible + label {
     outline: 2px solid var(--accent-focus);
     outline-offset: 2px;
     border-radius: 2px;
}


/* Loading state for buttons */
.register-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-dark)); /* Darker loading bg */
}

.register-btn.loading > * { /* Hide children */
    visibility: hidden;
}

.register-btn.loading::after { /* Spinner */
    content: "";
    position: absolute;
    width: 20px; /* Slightly larger spinner */
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Use accent-text color */
    border-radius: 50%;
    border-top-color: var(--accent-text); /* Spinner color */
    animation: spin 0.8s linear infinite;
}
/* Dark mode spinner consistency */
.dark-mode .register-btn.loading::after {
     border: 3px solid rgba(255, 255, 255, 0.3);
     border-top-color: #fff;
}


@keyframes spin {
    to { transform: rotate(360deg); }
}
