:root {
    --primary-navy: #0A192F;
    --primary-light: #172A45;
    --gold: #D4AF37;
    --gold-hover: #EBC855;
    --white: #FFFFFF;
    --text-dark: #2B3674;
    --text-muted: #8E9BAE;
    --error: #EE5D50;
    --border: #E2E8F0;
    --bg-light: #F8FAFC;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Branding */
.login-left {
    flex: 1;
    background-image: url('../assets/images/admin_login_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: var(--white);
}

.login-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 1;
}

.login-brand {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-brand h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.login-brand p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.security-badges {
    display: flex;
    gap: 15px;
}

.sec-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sec-badge i {
    color: var(--gold);
}

/* Right Side - Form */
.login-right {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.login-form-container {
    width: 100%;
    max-width: 450px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.secure-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
}

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

.input-icon-wrapper i:first-child {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
}

.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--primary-navy);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-left: 28px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--gold);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.forgot-link {
    color: var(--primary-navy);
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* reCAPTCHA Mock */
.recaptcha-mock {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    width: 304px;
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.08);
}

.rc-anchor {
    display: flex;
    align-items: center;
    width: 100%;
}

.rc-checkbox {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rc-checkbox:hover { border-color: #b2b2b2; }

.rc-text {
    font-family: Roboto, helvetica, arial, sans-serif;
    font-size: 14px;
    color: #282828;
    flex-grow: 1;
}

.rc-logo img {
    width: 32px;
    opacity: 0.8;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-navy);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.15);
}

.btn-login:hover {
    background: var(--gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.2);
}

.btn-login:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Security Notice */
.security-notice {
    padding: 15px;
    background: rgba(238, 93, 80, 0.05);
    border-left: 4px solid var(--error);
    border-radius: 4px;
}

.security-notice p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.security-notice i {
    color: var(--error);
}

.client-ip {
    font-family: monospace;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .login-left { display: none; }
    .login-right { padding: 2rem; background: var(--bg-light); }
    .login-form-container { 
        background: var(--white); 
        padding: 40px; 
        border-radius: 16px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    }
}
@media (max-width: 480px) {
    .login-form-container { padding: 30px 20px; }
    .recaptcha-mock { width: 100%; }
}
