/*
    Styling for the shared sign-in fly-in (Views/Shared/_SignInFlyin.cshtml,
    js/shared/signin-flyin.js). Self-contained so any layout can include the partial without
    also needing nwa-landing.css, which owns the Job Seeker landing page's own copy of this
    same panel.
*/

.signin-flyin {
    width: min(80vw, 100vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    font-family: Poppins, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The header keeps its natural height; the body takes everything left over. Stated explicitly
   so the iframe's height resolves against a definite box rather than an auto one. */
.signin-flyin__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dce6f1;
}

.signin-flyin .offcanvas-title {
    font-size: 20px;
    font-weight: 700;
    color: #00255e;
    margin: 0;
}

.signin-flyin__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signin-flyin__actions a,
.signin-flyin__actions a:link,
.signin-flyin__actions a:visited,
.signin-flyin__actions a:hover,
.signin-flyin__actions a:focus,
.signin-flyin__actions a:active {
    color: #00255e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #dce6f1;
    border-radius: 6px;
    padding: 6px 12px;
    white-space: nowrap;
}

.signin-flyin__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden !important;
}

/* flex:1 1 auto rather than relying on height:100% alone - a percentage height against a flex
   item whose own height is computed can collapse. align-self:stretch covers the cross axis. */
.signin-flyin__body iframe {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
}

.signin-flyin__status {
    padding: 24px;
    color: #445;
    font-size: 14px;
}

@media (max-width: 680px) {
    .signin-flyin {
        height: calc(100vh - 72px - env(safe-area-inset-bottom, 0px));
        height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100vh - 72px - env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px));
    }
}
