/*
 * Kulturschatzsuche PWA - account screens: login, login code, profile, help.
 * Additions only; every look comes from app.css (code panel, help, cards, chips).
 */

.account .page-tag {
    margin-bottom: 8px;
}

.account h1 {
    font-size: 38px;
    margin: 7px 0 12px;
}

.account .lede {
    font-size: 12px;
    line-height: 1.85;
}

.account .lede strong {
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.account-lead {
    margin: 18px 0 16px;
}

.login-context {
    margin: 18px 0 0;
}

.login-panel,
.login-code-panel {
    margin-top: 20px;
}

.account-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.7;
    margin: 0 0 7px;
}

.account-field {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0 0 14px;
    padding: 13px 15px;
    border: 1.5px solid var(--field-line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.account-field::placeholder {
    color: var(--muted);
    opacity: .75;
}

.account-field:focus {
    border-color: var(--green);
}

.account-field[aria-invalid=true] {
    border-color: var(--danger);
}

.code-digits-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.code-digits-six span {
    height: 54px;
    font-size: 23px;
}

/* Without scripting nothing mirrors the digits, so the real field shows instead. */
html:not(.js) .login-code-panel .code-boxes input {
    position: static;
    display: block;
    height: 57px;
    opacity: 1;
    border: 1.5px solid var(--field-line);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    caret-color: auto;
    text-align: center;
    letter-spacing: .35em;
    font: 500 24px/1 Jost, sans-serif;
}

html:not(.js) .login-code-panel .code-digits {
    display: none;
}

.login-code-panel input[aria-invalid=true] + .code-digits span {
    border-color: var(--danger);
}

.resend-form {
    margin: 20px 4px 0;
    text-align: center;
}

.resend-form .small-note {
    margin: 0;
}

.resend-form .text-button {
    font-weight: 600;
}

.resend-form .text-button:disabled {
    color: var(--muted);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.account-actions {
    margin-top: 6px;
    gap: 0;
}

.account-legal-note {
    margin: 12px 4px 0;
    text-align: center;
}

.account-legal-note a,
.credits-list a {
    color: var(--green);
    text-underline-offset: 3px;
}

/* Profile */

.profile-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 6px 0 12px;
}

.profile-initials {
    display: grid;
    place-items: center;
    flex: none;
    width: 63px;
    height: 70px;
    border-radius: 30px 30px 15px 15px;
    background: var(--green-soft);
    color: var(--green);
    font: 500 29px/1 Fraunces, serif;
}

.profile-identity {
    min-width: 0;
}

.account .profile-identity h1 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-email {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    line-height: 1.7;
    color: var(--muted);
}

.profile-status .icon {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.profile-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    text-align: center;
}

.profile-stats strong {
    font-size: 29px;
}

.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.link-list li + li .visit-row {
    border-top: 0;
}

.link-list .visit-row>.icon {
    color: var(--muted);
}

.logout-form {
    margin: 26px 0 0;
}

.logout-form .small-note {
    margin: 10px 4px 0;
    text-align: center;
}

.account-legal {
    margin: 26px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

/* Sections that share the theme section's look: language, install */

.account-section {
    margin: 22px 0 26px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.account-section h2 {
    font: 500 25px/1.2 Fraunces, serif;
    letter-spacing: -.6px;
    margin-bottom: 8px;
}

.account-section>p {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 16px;
}

.account-section>p:last-child {
    margin-bottom: 0;
}

.lang-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lang-chips .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
}

.lang-chips .filter-chip.active {
    color: var(--action-ink);
}

.lang-chips .filter-chip .icon {
    width: 14px;
    height: 14px;
}

.install-section .secondary {
    margin-bottom: 14px;
}

/* Help additions */

.help details:last-of-type {
    border-bottom: 1px solid var(--line);
}

.help .account-card {
    margin: 26px 0 0;
}

.account-card h2 {
    margin: 5px 0 6px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
}

.legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    font-size: 11px;
    color: var(--green);
    text-underline-offset: 4px;
}

.help-legal .text-button {
    margin-top: 2px;
}

.credits-list {
    list-style: none;
    margin: 16px 0 22px;
    padding: 0;
}

.credits-list li {
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
    line-height: 1.7;
}

.credits-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.credits-list small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: var(--muted);
}

@media (max-width:370px) {
    .account h1 {
        font-size: 33px;
    }

    .account .profile-identity h1 {
        font-size: 26px;
    }

    .code-digits-six {
        gap: 5px;
    }

    .code-digits-six span {
        height: 47px;
        font-size: 21px;
    }

    .profile-stats strong {
        font-size: 25px;
    }
}

.leaderboard-form {
    display: grid;
    gap: 8px;
}

.leaderboard-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
