/* Login-specific overrides loaded after the shared Codex surface layer. */
.brand-panel {
    background: #2a2927 !important;
    border-color: #48443f !important;
}

body.light-mode .brand-panel {
    background: #f3f0e9 !important;
    border-color: #d5cec3 !important;
}

/* Keep authentication controls graphite; the global theme must not turn them orange. */
body:not(.light-mode) .login-card {
    background: #1f1e1c !important;
    border: 1px solid rgba(255, 255, 255, 0.075) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36) !important;
}

.login-card :is(.google-btn, .submit-btn, .btn-primary, .btn-secondary),
.login-card :is(.google-btn, .submit-btn, .btn-primary, .btn-secondary):hover,
.login-card :is(.google-btn, .submit-btn, .btn-primary, .btn-secondary):focus-visible {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.login-card .google-btn:hover,
.login-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: var(--text-primary) !important;
}

.login-card .submit-btn,
.login-card .btn-primary {
    background: #5b5d60 !important;
    color: #fff !important;
}

.login-card .submit-btn:hover,
.login-card .btn-primary:hover,
.login-card .submit-btn:focus-visible,
.login-card .btn-primary:focus-visible {
    background: #696c70 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}

body.light-mode .login-card {
    background: #e3dfd8 !important;
    border-color: rgba(53, 48, 42, 0.12) !important;
    box-shadow: 0 18px 48px rgba(53, 48, 42, 0.12) !important;
}

body.light-mode .login-card .submit-btn,
body.light-mode .login-card .btn-primary {
    background: #85898f !important;
}

body.light-mode .login-card .submit-btn:hover,
body.light-mode .login-card .btn-primary:hover {
    background: #777c83 !important;
}

/* Google keeps its white identity surface in both application themes. */
.login-card .google-signin {
    min-height: 40px;
    background: #fff;
    border-radius: 999px;
    corner-shape: round !important;
}
.login-card .google-signin iframe {
    border-radius: 999px;
    corner-shape: round !important;
    background: #fff;
}
.login-card .google-btn,
.login-card .google-btn:hover,
.login-card .google-btn:focus-visible {
    appearance: none;
    min-height: 44px;
    padding: 12px 16px;
    background: #fff !important;
    color: #1f1f1f !important;
    border: 1px solid #dadce0 !important;
    border-radius: 999px;
    corner-shape: round !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .01em;
    text-shadow: none;
    box-shadow: none !important;
    transition: border-color .15s ease;
}
.login-card .google-btn:hover { border-color: #b8bdc5 !important; }
.login-card .google-btn:focus-visible { outline: 2px solid #4285f4; outline-offset: 3px; }
.login-card .google-btn .google-icon { flex: 0 0 20px; }
.login-card .google-btn:disabled { opacity: 1; color: #5f6368 !important; }
