.dobs-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background:
        linear-gradient(145deg, rgba(244, 248, 251, .96), rgba(233, 240, 247, .96)),
        #eef4f9;
}

.dobs-login-card {
    width: min(960px, 100%);
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.15fr);
    overflow: hidden;
    border: 1px solid #d8e1ea;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 35, 55, .14);
}

.dobs-login-visual {
    position: relative;
    min-height: 540px;
    background: #0f2f45;
}

.dobs-login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 23, 36, .08), rgba(7, 23, 36, .42));
}

.dobs-login-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dobs-login-visual__caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dobs-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 54px;
}

.dobs-login-heading {
    margin-bottom: 28px;
}

.dobs-login-kicker {
    margin: 0 0 10px;
    color: #1E66AE;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dobs-login-heading h1 {
    max-width: 440px;
    margin: 0;
    color: #172033;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.dobs-login-heading p:not(.dobs-login-kicker) {
    margin: 14px 0 0;
    color: #69778a;
    font-size: 15px;
}

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

.dobs-login-form label {
    margin: 0;
    color: #2b3648;
    font-size: 13px;
    font-weight: 700;
}

.dobs-login-field {
    position: relative;
    margin-bottom: 8px;
}

.dobs-login-field i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #7c8da1;
    font-size: 14px;
    pointer-events: none;
}

.dobs-login-field input {
    width: 100%;
    height: 46px;
    border: 1px solid #d4dde8;
    border-radius: 10px;
    padding: 10px 14px 10px 42px;
    color: #172033;
    background: #f9fbfd;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.dobs-login-field input:focus {
    border-color: #2580DA;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 128, 218, .12);
    outline: none;
}

.dobs-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.dobs-login-button {
    min-width: 112px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border: 1px solid #2580DA;
    border-radius: 8px;
    color: #fff;
    background: #2580DA;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 128, 218, .18);
}

.dobs-login-button:hover,
.dobs-login-button:focus {
    color: #fff;
    border-color: #1E66AE;
    background: #1E66AE;
}

.dobs-login-actions a {
    color: #516071;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.dobs-login-actions a:hover {
    color: #1E66AE;
    text-decoration: underline;
}

.dobs-login-alert {
    margin-bottom: 8px;
    border: 1px solid #f0c7c5;
    border-radius: 14px;
    padding: 10px 12px;
    color: #842029;
    background: #fff4f3;
    font-size: 13px;
}

.dobs-login-alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 767.98px) {
    .dobs-login-page {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .dobs-login-card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 20px;
    }

    .dobs-login-visual {
        min-height: 190px;
    }

    .dobs-login-panel {
        padding: 34px 24px 30px;
    }

    .dobs-login-heading h1 {
        font-size: 25px;
    }

    .dobs-login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dobs-login-button {
        width: 100%;
    }
}

/* --- moving between signing in and asking for a password ------------------
 * The two screens are the same card with the panel swapped, so the move should
 * read as the panel changing rather than the page reloading. A cross-document
 * view transition does that with no JavaScript at all: the browser holds the
 * old page on screen and crossfades it into the new one.
 *
 * The card, the photo and the heading are identical on both screens, so a
 * crossfade of the whole page only ever shows movement where the two actually
 * differ, which is the panel. The parts are deliberately NOT given
 * view-transition-name: naming a child promotes it out of the card, which has
 * overflow: hidden and a 24px radius, so its corners would go square for the
 * length of the transition.
 *
 * Browsers without view transitions navigate exactly as they do now, so the
 * fallback is today's behaviour rather than a broken one.
 */
@view-transition { navigation: auto; }

::view-transition-old(root) {
    animation: dobs-login-out .2s cubic-bezier(.23, 1, .32, 1) both;
}
::view-transition-new(root) {
    animation: dobs-login-in .24s cubic-bezier(.23, 1, .32, 1) both;
}

@keyframes dobs-login-out { to   { opacity: 0; transform: translateY(-6px); } }
@keyframes dobs-login-in  { from { opacity: 0; transform: translateY(6px);  } }

/* Somebody who has asked for less movement gets the plain navigation. */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none; }
}
