/* PBI 196 / 682 / 796 — the login card's stylesheet, SHARED BY THE WEB AND DESKTOP HEADS.
   This file is the single source of the login card's appearance. The web head links it from
   index.html; the Windows desktop head build-links this very file into its own asset folder
   (Oktavis.Avalonia.Desktop.csproj → Assets/Login/) and serves it to the NativeWebView that
   hosts the login (PBI 796). Two copies would drift, and a login that looks different on the
   two heads is exactly what PBI 796 set out not to ship — so edit here and both follow.

   Colours mirror the app's Mod* palette (see Oktavis.Avalonia/MainApp/App.axaml):
   ModBg #0A1520, ModSurface #111E2C, ModPrimary #3190E0, ModText #FFF,
   ModMuted #8CA0B0, ModBorder #1E3048. */
#ok-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;                 /* above the Avalonia canvas */
    display: flex;                 /* toggled to 'none' when hidden (inline style) */
    justify-content: center;
    align-items: center;
    background: #0A1520;
    font-family: 'Inter', 'Nunito', system-ui, sans-serif;
}

.ok-login-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 340px;
    max-width: 90vw;
    padding: 36px 40px;
    background: #111E2C;
    border: 1px solid #1E3048;
    border-radius: 8px;
}

.ok-login-title {
    text-align: center;
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ok-login-label {
    color: #8CA0B0;
    font-size: 13px;
    margin: 12px 0 5px;
}

#ok-login-overlay input {
    box-sizing: border-box;
    height: 44px;
    width: 100%;
    padding: 0 16px;
    background: #0C1A28;
    border: 1px solid #1E3048;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
}

#ok-login-overlay input::placeholder { color: #5A7A90; }
#ok-login-overlay input:focus { border-color: #3190E0; }

.ok-pw-row { position: relative; display: flex; align-items: center; }
.ok-pw-row input { padding-right: 44px; }

.ok-login-reveal {
    position: absolute;
    right: 4px;
    height: 40px;
    width: 40px;
    background: transparent;
    border: none;
    color: #8CA0B0;
    font-size: 16px;
    cursor: pointer;
}

.ok-login-error {
    color: #FF7043;
    font-size: 13px;
    min-height: 18px;
    margin-top: 10px;
}

.ok-login-submit {
    height: 40px;
    margin-top: 16px;
    background: #3190E0;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ok-login-submit:hover { background: #4EA8F0; }
.ok-login-submit:disabled { opacity: 0.6; cursor: default; }

/* PBI 682 — identifier-first login. The two step containers are plain blocks (display toggled from
   webLogin.js); the card's own flex column still governs the layout. */
#ok-login-step-identifier,
#ok-login-step-password { display: block; }

/* The workspace name IS the switch control (spike 615 §6.4): a link, not a button, because it is
   primarily a statement of where the password is about to go. */
.ok-login-workspace {
    align-self: flex-start;
    padding: 2px 0;
    margin: 4px 0 2px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ok-login-workspace:hover { color: #4EA8F0; }

.ok-login-workspace-list {
    display: flex;
    flex-direction: column;
    margin: 2px 0 6px;
    background: #0C1A28;
    border: 1px solid #1E3048;
    border-radius: 8px;
    overflow: hidden;
}

.ok-login-workspace-item {
    padding: 9px 12px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.ok-login-workspace-item:hover { background: #16283A; }

.ok-login-link {
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #8CA0B0;
    font-size: 13px;
    cursor: pointer;
}

.ok-login-link:hover { color: #4EA8F0; }
