/**
 * examitall Auth Plugin - Split Screen Layout
 * Path: /wp-content/plugins/eia-exam-auth/assets/css/styles.css
 */

:root {
    /* Brand colors */
    --eia-blue: #00a3e0;
    --eia-red: #ef3340;
    --eia-slate: #41748d;
    --eia-black: #000000;
    --eia-white: #ffffff;
    --eia-lgray: #f5f5f5;
    --eia-dgray: #c4c2c2;
    
    /* Text colors */
    --eia-text: #333333;
    --eia-text-muted: #666666;
    --eia-text-disabled: #999999;
    
    /* Interaction states */
    --eia-blue-light: #e3f2fd;
    --eia-red-dark: #c82333;
    
    /* Status colors */
    --eia-success: #28a745;
    --eia-success-bg: #d4edda;
    --eia-success-text: #155724;
    --eia-error: #dc3545;
    --eia-error-bg: #f8d7da;
    --eia-error-text: #721c24;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base */
body.eia-auth-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--eia-text);
    background: var(--eia-white);
    min-height: 100vh;
}

/* ==========================================================================
   SPLIT SCREEN CONTAINER
   ========================================================================== */

.eia-auth-container {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   LEFT SIDE - BRANDING (60%)
   ========================================================================== */

.eia-auth-branding {
    flex: 0 0 60%;
    background: var(--eia-slate);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.eia-auth-branding-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--eia-black) 0%, var(--eia-blue) 100%);
    opacity: 0.85;
}

.eia-auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--eia-white);
}

.eia-auth-logo {
    display: inline-block;
    margin-bottom: 30px;
}

.eia-auth-logo:empty {
    display: none;
}

.eia-auth-logo img {
    max-width: 280px;
    height: auto;
}

.eia-auth-tagline {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

.eia-auth-tagline:empty {
    display: none;
}

/* ==========================================================================
   RIGHT SIDE - FORM (40%)
   ========================================================================== */

.eia-auth-form-wrapper {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    background: var(--eia-white);
    overflow-y: auto;
    min-height: 100vh;
}

.eia-auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

/* Form Header */
.eia-auth-form-header {
    margin-bottom: 32px;
    text-align: center;
}

.eia-auth-form-header h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--eia-slate);
}

.eia-auth-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--eia-text);
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

#loginform,
#registerform,
#lostpasswordform,
#resetpassform {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

#loginform p,
#registerform p,
#lostpasswordform p,
#resetpassform p {
    margin-bottom: 20px;
}

/* Labels */
#loginform label,
#registerform label,
#lostpasswordform label,
#resetpassform label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--eia-text);
    margin-bottom: 6px;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="email"],
#loginform input[type="password"],
#registerform input[type="text"],
#registerform input[type="email"],
#registerform input[type="password"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"],
#resetpassform input[type="text"],
#resetpassform input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--eia-text);
    background: var(--eia-white);
    border: 1px solid var(--eia-dgray);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

#loginform input:focus,
#registerform input:focus,
#lostpasswordform input:focus,
#resetpassform input:focus {
    border-color: var(--eia-blue);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

/* Password field wrapper */
.wp-pwd {
    position: relative;
    display: block;
}

.wp-pwd input[type="password"],
.wp-pwd input[type="text"] {
    padding-right: 45px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Hide password toggle - reposition inside input */
button.wp-hide-pw,
.wp-hide-pw {
    position: relative !important;
    float: right !important;
    margin-top: -54px !important;
    margin-right: 12px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    color: var(--eia-text);
    height: 20px !important;
    width: 20px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    line-height: 0 !important;
    z-index: 10;
}

button.wp-hide-pw:hover,
.wp-hide-pw:hover {
    color: var(--eia-blue);
    background: transparent !important;
}

button.wp-hide-pw .dashicons,
.wp-hide-pw .dashicons {
    display: block;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Remember Me */
p.forgetmenot {
    margin-bottom: 20px !important;
}

.forgetmenot {
    display: flex;
    align-items: center;
}

.forgetmenot input[type="checkbox"],
.eia-terms-agreement input[type="checkbox"] {
    margin: 0 8px 0 0;
    cursor: pointer;
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    box-shadow: none !important;
}

.forgetmenot input[type="checkbox"]:checked::before,
.eia-terms-agreement input[type="checkbox"]:checked::before {
    content: none !important;
}

.forgetmenot label {
    display: inline !important;
    font-weight: 400 !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

/* Submit Button */
#loginform p.submit,
#registerform p.submit,
#lostpasswordform p.submit,
#resetpassform p.submit {
    margin-bottom: 0;
    text-align: right;
}

#wp-submit,
.button-primary {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--eia-white);
    background: var(--eia-slate);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

#wp-submit:hover,
.button-primary:hover {
    background: var(--eia-blue);
}

#wp-submit:active,
.button-primary:active {
    transform: translateY(1px);
}

#wp-submit:focus,
.button-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.3);
}

/* ==========================================================================
   TERMS AGREEMENT
   ========================================================================== */

.eia-terms-agreement {
    margin-bottom: 20px;
}

.eia-terms-agreement label {
    display: flex !important;
    align-items: center;
    font-weight: 400 !important;
    cursor: pointer;
}

.eia-terms-agreement input[type="checkbox"] {
    margin: 0 10px 0 0;
}

.eia-terms-agreement a {
    color: var(--eia-slate);
    font-weight: 600;
    text-decoration: none;
}

.eia-terms-agreement a:hover {
    color: var(--eia-blue);
}

/* ==========================================================================
   MESSAGES & ERRORS
   ========================================================================== */

#login .message,
#login .success {
    background: var(--eia-success-bg);
    color: var(--eia-success-text);
    border: none;
    border-left: 4px solid var(--eia-success);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 16px;
}

#login #login_error,
#login .error {
    background: var(--eia-error-bg);
    color: var(--eia-error-text);
    border: none;
    border-left: 4px solid var(--eia-error);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 16px;
}

#login #login_error a,
#login .error a {
    color: var(--eia-error-text);
    font-weight: 600;
}

/* ==========================================================================
   FOOTER LINKS
   ========================================================================== */

.eia-auth-links {
    margin-top: 24px;
    text-align: center;
}

.eia-auth-links p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--eia-text);
}

.eia-auth-links a {
    color: var(--eia-slate);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.eia-auth-links a:hover {
    color: var(--eia-blue);
}

.eia-auth-register-link a {
    color: var(--eia-red);
    font-weight: 600;
}

.eia-auth-register-link a:hover {
    color: var(--eia-blue);
}

/* Login link on register page - same red styling */
.eia-auth-links .login-link-text a,
.eia-login-links .login-link-text a {
    color: var(--eia-red);
    font-weight: 600;
}

.eia-auth-links .login-link-text a:hover,
.eia-login-links .login-link-text a:hover {
    color: var(--eia-blue);
}

/* Register link on login page - red styling */
.eia-login-links .register-link a {
    color: var(--eia-red);
    font-weight: 600;
}

.eia-login-links .register-link a:hover {
    color: var(--eia-blue);
}

/* Page Footer */
.eia-auth-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--eia-dgray);
    text-align: center;
}

.eia-auth-footer p {
    margin: 4px 0;
    font-size: 14px;
    color: var(--eia-text);
}

.eia-auth-footer a {
    color: var(--eia-slate);
    text-decoration: none;
    font-weight: 500;
}

.eia-auth-footer a:hover {
    color: var(--eia-blue);
}

/* ==========================================================================
   HIDE WORDPRESS DEFAULT ELEMENTS
   ========================================================================== */

#login h1,
#login #nav,
#login #backtoblog,
#login .privacy-policy-page-link,
#login .message.register,
.login .language-switcher {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .eia-auth-branding {
        flex: 0 0 50%;
        padding: 40px;
    }
    
    .eia-auth-form-wrapper {
        flex: 0 0 50%;
    }
    
    .eia-auth-logo img {
        max-width: 200px;
    }
    
    .eia-auth-tagline {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .eia-auth-container {
        flex-direction: column;
    }
    
    .eia-auth-branding {
        flex: none;
        min-height: 200px;
        padding: 30px;
    }
    
    .eia-auth-logo img {
        max-width: 160px;
    }
    
    .eia-auth-tagline {
        font-size: 16px;
        display: none;
    }
    
    .eia-auth-form-wrapper {
        flex: 1;
        padding: 30px 20px;
    }
    
    .eia-auth-form-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .eia-auth-branding {
        min-height: 150px;
        padding: 20px;
    }
    
    .eia-auth-logo img {
        max-width: 140px;
    }
    
    .eia-auth-form-wrapper {
        padding: 24px 16px;
    }
    
    .eia-auth-form-header h1 {
        font-size: 24px;
    }
    
    #wp-submit {
        padding: 12px 20px;
    }
}