/* Vision reveal on the login brand panel. */
.brand-panel {
    transition: padding 700ms cubic-bezier(.22, 1, .36, 1);
}

.brand-content {
    transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.brand-logo,
.brand-title,
.brand-subtitle,
.brand-quote {
    transition: width 700ms cubic-bezier(.22, 1, .36, 1),
        height 700ms cubic-bezier(.22, 1, .36, 1),
        font-size 700ms cubic-bezier(.22, 1, .36, 1),
        margin 700ms cubic-bezier(.22, 1, .36, 1),
        min-height 700ms cubic-bezier(.22, 1, .36, 1),
        max-width 700ms cubic-bezier(.22, 1, .36, 1),
        max-height 700ms cubic-bezier(.22, 1, .36, 1),
        opacity 450ms ease;
}

.brand-vision-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(240, 240, 240, .62);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 0 -10px;
    min-height: 36px;
    padding: 7px 10px;
    text-align: left;
    transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.brand-vision-trigger:hover,
.brand-vision-trigger:focus-visible {
    background: rgba(255, 255, 255, .055);
    color: #ffffff;
    outline: none;
}

.brand-vision-trigger:active {
    transform: translateY(1px);
}

.brand-vision-trigger svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.brand-vision-trigger.is-open svg {
    transform: rotate(180deg);
}

.brand-vision-line {
    width: 27px;
    height: 1px;
    background: currentColor;
    opacity: .55;
    transition: width 350ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}

.brand-vision-trigger:hover .brand-vision-line,
.brand-vision-trigger:focus-visible .brand-vision-line,
.brand-vision-trigger.is-open .brand-vision-line {
    width: 36px;
    opacity: .8;
}

.brand-panel.is-vision-open {
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 42px;
    padding-top: clamp(22px, 3.5vh, 42px);
}

.brand-panel.is-vision-open .brand-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 7px;
    animation: none;
}

.brand-panel.is-vision-open .brand-title {
    font-size: clamp(30px, 3.3vw, 42px);
    letter-spacing: -.035em;
    margin-bottom: 5px;
}

.brand-panel.is-vision-open .brand-subtitle {
    font-size: 13px;
    margin-bottom: 11px;
}

.brand-panel.is-vision-open .brand-quote {
    font-size: 0;
    line-height: 0;
    max-height: 0;
    margin-bottom: 0;
    min-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.brand-vision-panel {
    color: #d2d0cc;
    max-height: 0;
    max-width: 500px;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    transform: translateY(-10px) scaleY(.96);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0 round 3px);
    will-change: max-height, opacity, transform, clip-path;
    transition: max-height 700ms cubic-bezier(.22, 1, .36, 1),
        opacity 500ms ease, padding-top 700ms cubic-bezier(.22, 1, .36, 1),
        transform 700ms cubic-bezier(.22, 1, .36, 1),
        clip-path 620ms cubic-bezier(.22, 1, .36, 1);
}

.brand-vision-panel[hidden] {
    display: none;
}

.brand-vision-panel.is-visible {
    max-height: 780px;
    opacity: 1;
    padding-top: 25px;
    transform: translateY(0);
    clip-path: inset(0 0 0 0 round 3px);
}

/* On close, the mask travels from the first line down through the letter. */
.brand-vision-panel.is-closing {
    clip-path: inset(100% 0 0 0 round 3px);
}

.brand-vision-eyebrow {
    color: rgba(240, 240, 240, .55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.brand-vision-panel h2 {
    color: #f2f1ef;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1;
    margin: 0 0 11px;
}

.brand-vision-lead {
    color: #e1dfdb;
    font-size: 16px;
    line-height: 1.42;
    margin: 0 0 15px;
    max-width: 460px;
}

.brand-vision-body {
    border-left: 1px solid rgba(255, 255, 255, .16);
    padding-left: 14px;
}

.brand-vision-body p,
.brand-vision-footer p {
    color: rgba(226, 224, 220, .78);
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.brand-vision-footer {
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin-top: 20px;
    padding-top: 17px;
}

/* Keep the login reveal focused on the vision, not the support footer. */
.brand-vision-footer {
    display: none;
}

.brand-vision-footer a {
    color: #f0b66e;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    text-decoration: none;
    transition: color 180ms ease;
}

.brand-vision-footer a:hover,
.brand-vision-footer a:focus-visible {
    color: #ffd59e;
    text-decoration: underline;
}

.brand-vision-footer span {
    color: rgba(240, 240, 240, .52);
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-style: italic;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body.light-mode .brand-vision-trigger {
    color: rgba(36, 34, 31, .58);
}

body.light-mode .brand-vision-trigger:hover,
body.light-mode .brand-vision-trigger:focus-visible {
    background: rgba(0, 0, 0, .045);
    color: #1d1b19;
}

body.light-mode .brand-vision-panel {
    color: #3e3a35;
}

body.light-mode .brand-vision-eyebrow,
body.light-mode .brand-vision-footer span {
    color: rgba(45, 41, 36, .57);
}

body.light-mode .brand-vision-panel h2 {
    color: #171513;
}

body.light-mode .brand-vision-lead {
    color: #35312d;
}

body.light-mode .brand-vision-body {
    border-left-color: rgba(45, 41, 36, .2);
}

body.light-mode .brand-vision-body p,
body.light-mode .brand-vision-footer p {
    color: rgba(55, 50, 45, .78);
}

body.light-mode .brand-vision-footer {
    border-top-color: rgba(45, 41, 36, .16);
}

@media (max-width: 1100px) {
    .brand-vision-panel {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-panel,
    .brand-content,
    .brand-logo,
    .brand-title,
    .brand-subtitle,
    .brand-quote,
    .brand-vision-panel,
    .brand-vision-trigger,
    .brand-vision-trigger svg,
    .brand-vision-line {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
}

/* Keep the two login surfaces independent while the vision panel expands. */
@media (min-width: 1101px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .login-shell {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .brand-panel,
    .auth-panel,
    .login-container {
        min-height: 0;
    }

    .brand-panel {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .auth-panel {
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: flex-start;
    }

    .login-container {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .login-card {
        max-height: none;
        overflow: visible;
    }

    .brand-panel.is-vision-open {
        align-items: flex-start;
        overflow-y: auto;
    }

    .brand-vision-panel.is-visible {
        max-height: 2000px;
        overflow: visible;
    }

    .brand-vision-panel.is-closing {
        overflow: hidden;
    }

    .brand-vision-panel h2 {
        font-size: clamp(32px, 3.45vw, 46px);
        line-height: 1.05;
    }

    .brand-vision-lead {
        font-size: clamp(17px, 1.35vw, 20px);
        line-height: 1.48;
    }

    .brand-vision-body p,
    .brand-vision-footer p {
        font-size: clamp(15px, 1.1vw, 17px);
        line-height: 1.52;
    }
}
