/* ----- Login screen (theme-agnostic) ----- */
/* Used by index.php on the login screen. Loaded in addition to the active
 * theme stylesheet so that the login page renders consistently regardless of
 * which theme the user has selected. */

body.login-screen {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(15, 123, 159, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(120, 80, 200, 0.07) 0%, transparent 55%),
        var(--page-bg, #f5f1ea);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text, #172033);
}

.login-shell {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 36px 36px 28px;
    box-shadow:
        0 1px 2px rgba(15, 35, 65, 0.04),
        0 16px 48px rgba(15, 35, 65, 0.08);
    box-sizing: border-box;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.login-brand-mark {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f7b9f 0%, #0a5d7a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 123, 159, 0.28);
}

.login-brand-text h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.login-brand-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(23, 32, 51, 0.62);
    line-height: 1.4;
}

.login-heading {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.login-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(23, 32, 51, 0.62);
}

.login-msg {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.login-msg-error {
    background: #fde7ea;
    color: #9b1c2a;
    border: 1px solid rgba(176, 0, 32, 0.14);
}

.login-msg-info {
    background: #e6f4ea;
    color: #0a7d2c;
    border: 1px solid rgba(10, 125, 44, 0.14);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-field span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(23, 32, 51, 0.78);
}

.login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #172033;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.login-field input::placeholder {
    color: rgba(23, 32, 51, 0.45);
}

.login-field input:focus {
    outline: none;
    border-color: #0f7b9f;
    box-shadow: 0 0 0 3px rgba(15, 123, 159, 0.15);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(23, 32, 51, 0.78);
    user-select: none;
    cursor: pointer;
}

.login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.login-submit {
    margin-top: 4px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f7b9f 0%, #0a5d7a 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.12s, transform 0.06s;
    box-shadow: 0 4px 12px rgba(15, 123, 159, 0.25);
}

.login-submit:hover { filter: brightness(1.06); }
.login-submit:active { transform: translateY(1px); }

.login-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 13px;
}

.login-footer a {
    color: #0f7b9f;
    text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

.login-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.login-choice:hover { border-color: #0f7b9f; background: rgba(15, 123, 159, 0.04); }
.login-choice input[type="radio"] { margin-top: 3px; }
.login-choice-name { font-weight: 600; font-size: 14px; }
.login-choice-meta { font-size: 12px; color: rgba(23, 32, 51, 0.6); margin-top: 2px; }

@media (max-width: 480px) {
    .login-card { padding: 26px 22px 22px; border-radius: 14px; }
    .login-brand-mark { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
    .login-brand-text h1 { font-size: 19px; }
}
