@import url("./candidate-tokens.css");

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--ph-font-sans); background: var(--ph-canvas); height: 100vh; }

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

/* Left Panel - Branding */
.login-left {
    flex: 1;
    background: var(--ph-brand-navy); 
    color: var(--ph-text-inverse);
    display: flex;
    align-items: center;
    padding: 60px;
}
.brand-logo { width: 140px; margin-bottom: 32px; }
.brand-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ph-text-subtle);
    margin-bottom: 12px;
}
.left-content h2 { 
    font-size: 40px; 
    margin-bottom: 20px; 
    line-height: 1.1; 
    letter-spacing: -0.5px;
}
.left-content p { color: #cbd5e1; font-size: 18px; line-height: 1.6; max-width: 80%; }

/* Right Panel - Login */
.login-right { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px; background: var(--ph-surface); }
.form-wrapper { width: 100%; max-width: 380px; }
.form-header { margin-bottom: 32px; }
.form-header h1 { font-size: 28px; margin-bottom: 8px; color: var(--ph-text-primary); font-weight: 700; letter-spacing: -0.02em; }
.form-header a { color: var(--ph-brand-blue); text-decoration: none; font-weight: 500; }
.form-header a:hover { text-decoration: underline; }

/* Fields */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ph-text-secondary); }
.field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ph-border-medium);
    border-radius: var(--ph-radius-sm);
    font-size: 15px;
    color: var(--ph-text-primary);
    background: var(--ph-surface);
    transition: all 0.2s ease;
}
.field input:focus { 
    outline: none; 
    border-color: var(--ph-border-focus); 
    box-shadow: 0 0 0 3px var(--ph-brand-blue-glow); 
}

/* Password Toggle */
.password-wrapper { position: relative; display: flex; align-items: center; }
.eye-toggle { 
    position: absolute; right: 12px; background: none; border: none; 
    cursor: pointer; color: var(--ph-text-muted); display: flex; align-items: center;
}
.eye-toggle:hover { color: var(--ph-brand-blue); }

/* Options Row */
.login-options { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 14px; }
.checkbox-container { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ph-text-secondary); }
.login-options a { color: var(--ph-brand-blue); text-decoration: none; font-weight: 500; }
.login-options a:hover { text-decoration: underline; }

/* Button */
#loginBtn {
    width: 100%;
    padding: 12px;
    background: var(--ph-brand-blue);
    color: var(--ph-text-inverse);
    border: none;
    border-radius: var(--ph-radius-sm);
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s;
    box-shadow: var(--ph-shadow-xs);
}
#loginBtn:hover { background: var(--ph-brand-blue-hover); }
#loginBtn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ph-brand-blue-glow); }

/* Mobile */
@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right { padding: 20px; }
}