/* ============================================================================
   login.css — the one door: signing in, and opening an account when there is
   nothing to sign into.

   Only what belongs here. The shell, the provider buttons, the divider, the
   notice box, the small print and every form part come from base.css — the other
   two flow pages want them too.

   The .gk-login__providers and .gk-login__benefit* blocks at the two ends of this
   file came from a signup.css that had a screen of its own. They are named for
   this screen now, because it is the only one that draws them.
   ============================================================================ */

/* The pair sits a touch further from the lede than the shell puts it. */
.gk-login__providers {
    margin-top: 1.75rem;
}

.gk-login__notice {
    margin-bottom: var(--gk-space-4);
}

/* ----------------------------------------------------------------------------
   The password field, which is present before it is asked for
   ---------------------------------------------------------------------------- */

.gk-login__password {
    /* Its own stack, because the reveal button and the "sign in with a code"
       escape hatch sit inside it. */
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-2);
}

/* Hidden while the form is still asking for the address — but hidden by being
   clipped, not by `display: none` or the hidden attribute.
   
   That is the point of it: a password saved in her browser has to be able to fill
   this and submit in one step, which a field that is not rendered cannot do. So
   it stays laid out and stays fillable, and only stops being visible. Taken out
   of the flow with `position: absolute` so the form's gap does not leave a hole
   where it is.

   aria-hidden is what the attribute selector reads, and it is also what keeps it
   out of the accessibility tree; login.js lifts it and the tabindex together. */
.gk-login__password[aria-hidden='true'] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.gk-login__password-control {
    position: relative;
}

/* Room for the reveal button, so a long password does not run underneath it. */
.gk-login__password-input {
    padding-right: 3rem;
}

/* 44px of target inside a 48px field — the button is bigger than the icon it
   draws, which is what makes it hittable with a thumb. */
.gk-login__reveal {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--gk-radius-md);
    background: none;
    color: var(--gk-color-text-muted);
    cursor: pointer;
}

.gk-login__reveal:hover {
    color: var(--gk-color-text);
}

.gk-login__reveal:focus-visible {
    outline: none;
    box-shadow: var(--gk-ring-focus);
}

/* Aligned with the field above it rather than centred, since it belongs to that
   field and not to the form. */
.gk-login__use-code {
    align-self: flex-start;
    padding-left: 0;
}

/* The second sentence inside a repeated password failure — the one that names the
   people who have no password to get wrong. Its own line, under the first. */
.gk-login__hint {
    display: block;
    margin-top: var(--gk-space-1);
}

/* ----------------------------------------------------------------------------
   "Čo získaš s profilom" — the reasons, under the fold
   ---------------------------------------------------------------------------- */

/* The section heading, a size down from the page's own and in the softer ink —
   it introduces a list, it does not head the page. */
.gk-login__benefits-title {
    margin: 0;
    color: var(--gk-color-text-soft);
    font-family: var(--gk-font-display);
    font-size: var(--gk-text-2xl);
    font-weight: var(--gk-weight-bold);
    line-height: 1.08;
}

@media (min-width: 768px) {
    .gk-login__benefits-title {
        font-size: 1.875rem;
        line-height: 1.1;
    }
}

.gk-login__benefit-list {
    display: flex;
    flex-direction: column;
    gap: var(--gk-space-6);
    margin: var(--gk-space-8) 0 0;
    padding: 0;
    list-style: none;
}

.gk-login__benefit {
    display: flex;
    align-items: flex-start;
    gap: var(--gk-space-2);
    font-size: var(--gk-text-sm);
    line-height: 1.25rem;
}

/* Aligned to the first line of the sentence rather than to the row, so a benefit
   that wraps to two lines still reads as ticked from the top. */
.gk-login__benefit-tick {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gk-color-success);
}
