/**
 * Modern Login/Register Forms for eSIM Theme
 * Glass morphism design with responsive layout
 * Includes checkbox alignment fix
 * @version 1.0.0
 */

/* ==========================================================================
   MODERN LOGIN/REGISTER WRAPPER
   ========================================================================== */

.modern-login-register-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: auto;
    min-height: auto;
    overflow: visible;
}

/* ==========================================================================
   DUAL COLUMN LAYOUT (LOGIN + REGISTER)
   ========================================================================== */

.login-register-container {
    display: grid;
    gap: 40px;
    align-items: flex-start;
    transition: all 0.4s ease;
    height: auto;
    min-height: auto;
    overflow: visible;
}

/* Single form view - only login visible */
.login-register-container.single-form-view {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* Register form view - only register visible */
.login-register-container.register-form-view {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

/* Hide/show sections */
.login-section.hidden,
.register-section.hidden {
    display: none;
}

.login-section,
.register-section {
    position: relative;
    transition: all 0.4s ease;
    height: auto;
    min-height: auto;
    overflow: visible;
}

.login-form-container,
.register-form-container {
    background: var(--glass-bg, rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(12, 224, 107, 0.2));
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-glow, 0 20px 60px rgba(12, 224, 107, 0.1));
    transition: all 0.3s ease;
    overflow: visible;
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
}

.login-form-container:hover,
.register-form-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow, 0 30px 80px rgba(12, 224, 107, 0.15));
    border-color: var(--neon-green, #0ce06b);
}

/* ==========================================================================
   FORM HEADERS
   ========================================================================== */

.form-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-shadow: 0 2px 10px rgba(12, 224, 107, 0.3);
}

.form-title i {
    color: var(--neon-green, #0ce06b);
    font-size: 24px;
}

.form-subtitle {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   FORM GROUPS & INPUTS
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: var(--neon-green, #0ce06b);
    font-size: 14px;
}

.form-label .required {
    color: #ff4757;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    outline: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.form-input:focus {
    border-color: var(--neon-green, #0ce06b);
    background: rgba(12, 224, 107, 0.05);
    box-shadow: 0 0 20px rgba(12, 224, 107, 0.2);
    transform: translateY(-2px);
}

.form-input:valid {
    border-color: rgba(12, 224, 107, 0.6);
}

/* ==========================================================================
   PASSWORD INPUT WITH TOGGLE
   ========================================================================== */

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--neon-green, #0ce06b);
    transform: scale(1.1);
}

.password-toggle i {
    font-size: 16px;
}

/* ==========================================================================
   CUSTOM CHECKBOX (BENI HATIRLA FIX) - ENHANCED
   ========================================================================== */

.remember-section {
    margin: 32px 0;
}

.remember-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    user-select: none;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.remember-checkbox input[type="checkbox"].checkbox-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    left: -9999px !important;
}

.remember-checkbox .checkbox-custom {
    width: 20px !important;
    height: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    order: 1 !important;
}

.remember-checkbox .checkbox-custom::after {
    content: '' !important;
    width: 6px !important;
    height: 10px !important;
    border: solid var(--neon-green, #0ce06b) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) scale(0) !important;
    transition: all 0.2s ease !important;
    opacity: 0 !important;
}

.remember-checkbox input[type="checkbox"].checkbox-input:checked + .checkbox-custom {
    background: var(--neon-green, #0ce06b) !important;
    border-color: var(--neon-green, #0ce06b) !important;
    box-shadow: 0 0 15px rgba(12, 224, 107, 0.4) !important;
}

.remember-checkbox input[type="checkbox"].checkbox-input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1) !important;
    opacity: 1 !important;
    border-color: #000000 !important;
}

.remember-checkbox .checkbox-label {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8)) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    flex: 1 !important;
    order: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.remember-checkbox:hover .checkbox-custom {
    border-color: var(--neon-green, #0ce06b) !important;
    background: rgba(12, 224, 107, 0.1) !important;
}

/* Additional specificity for WooCommerce forms */
.woocommerce .remember-checkbox,
.woocommerce-form .remember-checkbox,
.login .remember-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Override any default checkbox styles */
.remember-checkbox input[type="checkbox"] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure proper display in all contexts */
.form-group.remember-section .remember-checkbox {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Additional reset for WordPress/WooCommerce checkbox interference */
.remember-checkbox input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Force visible layout debug - remove after confirming fix */
.remember-checkbox {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green, #0ce06b) 0%, #0bb456 100%);
    color: #000000;
    box-shadow: 0 10px 30px rgba(12, 224, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 224, 107, 0.4);
    background: linear-gradient(135deg, #0bb456 0%, var(--neon-green, #0ce06b) 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(12, 224, 107, 0.3);
}

.btn i {
    font-size: 16px;
}

/* ==========================================================================
   FORM LINKS
   ========================================================================== */

.form-links {
    text-align: center;
    margin-top: 24px;
    position: relative;
    overflow: visible !important;
    z-index: 5;
    height: auto;
}

.forgot-password-link,
.link {
    color: var(--neon-green, #0ce06b);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.forgot-password-link:hover,
.link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-green, #0ce06b);
    transform: translateY(-1px);
}

/* ==========================================================================
   CREATE ACCOUNT TOGGLE
   ========================================================================== */

.create-account-toggle {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: visible !important;
    z-index: 10;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto;
}

.divider-text {
    margin-bottom: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-text span {
    background: var(--glass-bg, rgba(0, 0, 0, 0.85));
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 1;
}

.no-account-text {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7)) !important;
    font-size: 15px !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    position: relative;
}

.no-account-text i {
    color: var(--neon-green, #0ce06b) !important;
    font-size: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

.btn-outline {
    background: transparent;
    color: var(--neon-green, #0ce06b);
    border: 2px solid var(--neon-green, #0ce06b);
    box-shadow: 0 0 20px rgba(12, 224, 107, 0.2);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--neon-green, #0ce06b);
    color: #000000;
    border-color: var(--neon-green, #0ce06b);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 224, 107, 0.4);
}

.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(12, 224, 107, 0.3);
}

/* Back to login button */
.btn-back-to-login {
    background: transparent;
    border: none;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.btn-back-to-login:hover {
    color: var(--neon-green, #0ce06b);
    transform: translateX(-3px);
}

.btn-back-to-login i {
    font-size: 12px;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--text-primary, #ffffff);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--neon-green, #0ce06b) 0%, #0bb456 100%);
    color: #000000;
    border-color: var(--neon-green, #0ce06b);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 224, 107, 0.3);
}

/* ==========================================================================
   TERMS & PRIVACY INFO BOXES
   ========================================================================== */

.terms-privacy-box {
    background: rgba(12, 224, 107, 0.08);
    border: 1px solid rgba(12, 224, 107, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.terms-privacy-box:hover {
    background: rgba(12, 224, 107, 0.12);
    border-color: rgba(12, 224, 107, 0.3);
}

.terms-privacy-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-privacy-content i {
    color: var(--neon-green, #0ce06b);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.personal-data-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.personal-data-info-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-content i {
    color: #4a9eff;
    font-size: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--text-primary, #ffffff);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-text p {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.info-text .link {
    color: #4a9eff;
    font-weight: 600;
}

.info-text .link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #4a9eff;
}

.terms-text {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   HIGHLIGHT ANIMATION
   ========================================================================== */

.highlight-form {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 20px 60px rgba(12, 224, 107, 0.1);
        border-color: rgba(12, 224, 107, 0.2);
    }
    25% {
        box-shadow: 0 25px 80px rgba(12, 224, 107, 0.4);
        border-color: var(--neon-green, #0ce06b);
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        box-shadow: 0 30px 100px rgba(12, 224, 107, 0.5);
        border-color: var(--neon-green, #0ce06b);
        transform: translateY(-8px) scale(1.03);
    }
    75% {
        box-shadow: 0 25px 80px rgba(12, 224, 107, 0.4);
        border-color: var(--neon-green, #0ce06b);
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        box-shadow: 0 20px 60px rgba(12, 224, 107, 0.1);
        border-color: rgba(12, 224, 107, 0.2);
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   PASSWORD STRENGTH INDICATOR
   ========================================================================== */

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.strength-weak {
    background: linear-gradient(90deg, #ff4757, #ff6b7a);
}

.strength-bar.strength-medium {
    background: linear-gradient(90deg, #ffa502, #ffb340);
}

.strength-bar.strength-strong {
    background: linear-gradient(90deg, var(--neon-green, #0ce06b), #0bb456);
}

.strength-text {
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.6));
    font-weight: 500;
}

/* ==========================================================================
   INFO BOX
   ========================================================================== */

.info-box {
    background: rgba(12, 224, 107, 0.1);
    border: 1px solid rgba(12, 224, 107, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.info-box i {
    color: var(--neon-green, #0ce06b);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box p {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   SINGLE LOGIN CONTAINER
   ========================================================================== */

.single-login-container {
    max-width: 500px;
    margin: 0 auto;
}

.single-login-container .login-form-container {
    padding: 48px;
}

/* ==========================================================================
   LIGHT THEME SUPPORT
   ========================================================================== */

.light-theme .modern-login-register-wrapper,
body.light-theme .modern-login-register-wrapper {
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(12, 224, 107, 0.2);
    --text-primary: #2c2c2c;
    --text-secondary: rgba(44, 44, 44, 0.7);
    --shadow-glow: 0 20px 60px rgba(12, 224, 107, 0.15);
}

.light-theme .form-input,
body.light-theme .form-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.light-theme .form-input::placeholder,
body.light-theme .form-input::placeholder {
    color: rgba(44, 44, 44, 0.5);
}

.light-theme .form-input:focus,
body.light-theme .form-input:focus {
    background: rgba(12, 224, 107, 0.05);
}

.light-theme .checkbox-custom,
body.light-theme .checkbox-custom {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.light-theme .password-toggle,
body.light-theme .password-toggle {
    color: rgba(44, 44, 44, 0.6);
}

.light-theme .terms-privacy-box,
body.light-theme .terms-privacy-box {
    background: rgba(12, 224, 107, 0.05);
    border-color: rgba(12, 224, 107, 0.15);
}

.light-theme .terms-privacy-box:hover,
body.light-theme .terms-privacy-box:hover {
    background: rgba(12, 224, 107, 0.08);
    border-color: rgba(12, 224, 107, 0.25);
}

.light-theme .personal-data-info-box,
body.light-theme .personal-data-info-box {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .personal-data-info-box:hover,
body.light-theme .personal-data-info-box:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .btn-secondary,
body.light-theme .btn-secondary {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .btn-secondary:hover,
body.light-theme .btn-secondary:hover {
    background: linear-gradient(135deg, var(--neon-green, #0ce06b) 0%, #0bb456 100%);
    color: #ffffff;
    border-color: var(--neon-green, #0ce06b);
}

.light-theme .no-account-text,
body.light-theme .no-account-text {
    color: var(--text-secondary);
}

.light-theme .divider-text span,
body.light-theme .divider-text span {
    background: var(--glass-bg);
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}

.light-theme .btn-outline,
body.light-theme .btn-outline {
    color: var(--neon-green, #0ce06b);
    border-color: var(--neon-green, #0ce06b);
}

.light-theme .btn-outline:hover,
body.light-theme .btn-outline:hover {
    background: var(--neon-green, #0ce06b);
    color: #ffffff;
}

.light-theme .btn-back-to-login,
body.light-theme .btn-back-to-login {
    color: var(--text-secondary);
}

.light-theme .btn-back-to-login:hover,
body.light-theme .btn-back-to-login:hover {
    color: var(--neon-green, #0ce06b);
}

.light-theme .info-text .link,
body.light-theme .info-text .link {
    color: #0066cc;
}

.light-theme .info-text .link:hover,
body.light-theme .info-text .link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px #0066cc;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .login-register-container {
        gap: 30px;
    }
    
    .login-form-container,
    .register-form-container {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .modern-login-register-wrapper {
        padding: 20px 15px;
    }
    
    .login-register-container {
        gap: 30px;
        /* Always single column on mobile */
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .login-form-container,
    .register-form-container {
        padding: 24px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .create-account-toggle {
        padding: 20px 0;
        margin-top: 24px;
    }
    
    .no-account-text {
        font-size: 14px;
    }
    
    .divider-text span {
        font-size: 13px;
        padding: 0 12px;
    }
    
    .terms-privacy-box {
        padding: 16px;
        margin: 16px 0;
    }
    
    .info-content {
        gap: 12px;
    }
    
    .info-text h4 {
        font-size: 15px;
    }
    
    .info-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modern-login-register-wrapper {
        padding: 15px 10px;
    }
    
    .login-form-container,
    .register-form-container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px 20px;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .login-form-container,
    .register-form-container,
    .form-input,
    .btn,
    .checkbox-custom,
    .strength-bar {
        transition: none;
    }
    
    .login-form-container:hover,
    .register-form-container:hover,
    .btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .checkbox-custom {
        border-width: 3px;
    }
    
    .btn-primary {
        border: 2px solid var(--neon-green, #0ce06b);
    }
}

/* Focus management for keyboard navigation */
.form-input:focus-visible,
.btn:focus-visible,
.checkbox-input:focus-visible + .checkbox-custom,
.forgot-password-link:focus-visible,
.link:focus-visible {
    outline: 2px solid var(--neon-green, #0ce06b);
    outline-offset: 2px;
}

/* ==========================================================================
   ANIMATION EFFECTS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-container,
.register-form-container {
    animation: fadeInUp 0.6s ease-out;
}

.register-form-container {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

/* Button ripple effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}