/* Login page - shares the Command Center's neon-glass visual language (tokens, panel
   glow, button treatment) via agent-command-center.css, which this page also loads for
   the base body/html/button/input resets and the .primary-button styling. These rules are
   just the auth-shell-specific layout on top of that shared base. */

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 24px;
    background: radial-gradient(circle at 78% -10%, rgba(62, 48, 143, .24), transparent 30%), radial-gradient(circle at 20% 90%, rgba(21, 88, 108, .12), transparent 28%), #070a14;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 12px;
    color: #d7c8ff;
    background: linear-gradient(135deg, rgba(167,139,250,.19), rgba(103,232,249,.1));
    box-shadow: 0 0 25px rgba(167,139,250,.19), inset 0 0 0 1px rgba(196,181,253,.2);
}

.auth-brand-mark-core {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 9px #a78bfa;
}

.auth-brand-name {
    font-size: 19px;
    letter-spacing: -.03em;
    font-weight: 780;
    color: #f8f7ff;
}

.auth-brand-name span {
    color: #a78bfa;
    margin-left: 1px;
}

.auth-brand-caption {
    font-size: 10px;
    color: #767b9c;
    margin-top: 4px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 26px;
    border-radius: 16px;
    border: 1px solid rgba(156,163,255,.13);
    background: radial-gradient(circle at 90% 0%, rgba(167,139,250,.1), transparent 45%), linear-gradient(145deg, rgba(23,27,52,.85), rgba(14,17,35,.85));
    box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.035);
}

.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #858cab;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.auth-eyebrow-line {
    width: 18px;
    height: 1px;
    background: #a78bfa;
    box-shadow: 0 0 9px #a78bfa;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 11px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.auth-alert--error {
    color: #f8a4c8;
    background: rgba(244,114,182,.09);
    border-color: rgba(244,114,182,.22);
}

.auth-alert--success {
    color: #8cebb0;
    background: rgba(74,222,128,.09);
    border-color: rgba(74,222,128,.22);
}

.auth-field-group {
    margin-bottom: 16px;
}

.auth-field-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a91b0;
    margin-bottom: 7px;
}

.auth-field {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid rgba(156,163,255,.14);
    background: rgba(255,255,255,.03);
    color: #f3f4ff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
}

.auth-field::placeholder {
    color: #565d7c;
}

.auth-field:focus {
    outline: none;
    border-color: rgba(167,139,250,.55);
    background: rgba(167,139,250,.06);
    box-shadow: 0 0 0 3px rgba(167,139,250,.12);
}

.auth-field-error {
    display: block;
    margin-top: 6px;
    color: #f8a4c8;
    font-size: 10px;
}

.auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #9da4bf;
    font-size: 11px;
}

.auth-checkbox-row input {
    accent-color: #a78bfa;
}

.auth-submit-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    padding: 12px;
    border: 1px solid rgba(193,173,255,.28);
    color: #f7f4ff;
    background: linear-gradient(135deg, #8062d9, #5f48ac);
    box-shadow: 0 8px 26px rgba(113,75,207,.28), inset 0 1px rgba(255,255,255,.18);
    transition: .18s ease;
}

.auth-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 30px rgba(113,75,207,.38), inset 0 1px rgba(255,255,255,.22);
}

.auth-submit-button:active {
    transform: scale(.98);
}

.auth-submit-button:disabled {
    opacity: 0.75;
    cursor: default;
    transform: none;
}

.auth-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(247, 244, 255, 0.35);
    border-top-color: #f7f4ff;
    border-radius: 50%;
    display: inline-block;
    animation: auth-spinner-spin 0.7s linear infinite;
}

@keyframes auth-spinner-spin {
    to { transform: rotate(360deg); }
}

.auth-help {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #a4a9c0;
}

.auth-help--links {
    margin: 16px 0 0;
    text-align: center;
}

.auth-help a {
    color: #c4b5fd;
    text-decoration: none;
}

.auth-help a:hover {
    text-decoration: underline;
}
