@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../vendor/manrope/manrope-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }

.am-login {
    --am-ink: #25272d;
    --am-muted: #686a74;
    --am-line: #e6e7eb;
    --am-accent: #bd263d;
    --am-accent-dark: #9e1930;
    --am-rose: #fff0f2;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: #fbfbfc;
    color: var(--am-ink);
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: 0;
}

.am-login * { letter-spacing: 0; }
.am-login--signin { background: #fff; }

.am-entry-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.am-entry-brand .apostle-brand-logo {
    display: block;
    width: 152px;
    height: 132px;
    object-fit: contain;
    border-radius: 0;
    filter: none;
}

.am-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    flex: 1;
    width: 100%;
    margin: 0;
    align-items: stretch;
}
.am-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 56px 64px 56px max(40px, calc((100vw - 1180px) / 2));
    background: #edf4f0;
}
.am-welcome-copy { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 0 28px; }
.am-team-label { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: 0 0 20px; padding: 7px 10px; border: 1px solid #d6e5dc; border-radius: 6px; background: #f8fbf9; color: #3d6456; font-size: 12px; font-weight: 700; line-height: 1.5; }
.am-team-label i { flex-shrink: 0; font-size: 15px; }
.am-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--am-accent); font-size: 13px; font-weight: 700; }
.am-eyebrow i { font-size: 20px; }
.am-welcome h1 { margin: 0; font-family: inherit; font-size: 38px; line-height: 1.23; font-weight: 800; }
.am-welcome-description { margin: 16px 0 0; color: #53675d; font-size: 14px; font-weight: 600; line-height: 1.8; }
.am-fleet { width: 100%; max-width: 560px; margin: 0 auto; }
.am-fleet img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: 8px; }
.am-fleet figcaption { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--am-muted); font-size: 12px; font-weight: 600; }
.am-fleet-line { width: 26px; height: 2px; flex-shrink: 0; background: var(--am-accent); }

.am-entry { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px max(40px, calc((100vw - 1180px) / 2)) 48px 64px; }
.am-form-content { width: 100%; max-width: 400px; margin: 0 auto; }
.am-entry-header { text-align: center; }
.am-entry-header .am-eyebrow { display: flex; justify-content: center; margin: 0 0 12px; }
.am-entry-greeting > span { display: block; }
.am-entry-header h2 { margin: 0 0 10px; color: var(--am-ink); font-family: inherit; font-size: 30px; font-weight: 800; line-height: 1.3; }
.am-entry-header h2 > span { color: var(--am-accent); }
.am-entry-header > p:last-child { margin: 0 0 28px; color: var(--am-muted); font-size: 13px; line-height: 1.7; }

.am-control-group { margin: 0 0 20px; }
.am-control-group .form-label { display: block; margin-bottom: 8px; color: #3c3e48; font-size: 12px; font-weight: 700; text-transform: none; }
.am-control-wrap { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 13px; border: 1px solid #dcdde3; border-radius: 7px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.am-control-wrap > i { flex-shrink: 0; font-size: 17px; color: #858793; }
.am-control-wrap .form-control { flex: 1; min-width: 0; min-height: 46px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--am-ink); font-family: inherit; font-size: 13px; }
.am-control-wrap .form-control:focus { outline: none; background: transparent; box-shadow: none; }
.am-control-wrap .form-control::placeholder { color: #858793; opacity: 1; }
.am-control-wrap:focus-within { border-color: var(--am-accent); box-shadow: 0 0 0 3px #bd263d16; }
.am-control-group--invalid .am-control-wrap { border-color: #b42332; }
.am-password-toggle { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-right: -7px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #797c89; font-size: 17px; cursor: pointer; }
.am-password-toggle:hover { background: var(--am-rose); color: var(--am-accent); }
.am-login :is(button, a, input[type="checkbox"]):focus-visible { outline: 3px solid var(--am-accent); outline-offset: 3px; }
.am-entry-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 25px; }
.am-entry-tools .form-check { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 0; }
.am-entry-tools .form-check-input { float: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; border: 1px solid #c5c7d0; border-radius: 4px; cursor: pointer; accent-color: var(--am-accent); }
.am-entry-tools .form-check-input:checked { background-color: var(--am-accent); border-color: var(--am-accent); }
.am-entry-tools .form-check-input:focus { box-shadow: 0 0 0 3px #bd263d16; }
.am-entry-tools .form-check-label { color: #565964; font-size: 12px; cursor: pointer; }
.am-reset-link { color: var(--am-accent); text-decoration: none; font-size: 12px; font-weight: 700; line-height: 24px; }
.am-reset-link:hover { color: var(--am-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.am-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--am-accent); border-radius: 7px; background: var(--am-accent); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 4px 8px #bd263d14; transition: background .18s, box-shadow .18s; }
.am-submit i { font-size: 17px; }
.am-submit:hover { background: var(--am-accent-dark); border-color: var(--am-accent-dark); color: #fff; box-shadow: 0 5px 12px #bd263d24; }
.am-submit:active { box-shadow: none; }
.am-login--signin .am-control-group .form-label { font-size: 13px; }
.am-login--signin .am-control-wrap { min-height: 52px; }
.am-login--signin .am-control-wrap .form-control { min-height: 50px; font-size: 14px; }
.am-login--signin .am-submit { min-height: 52px; font-size: 14px; }
.am-login--signin :is(.am-entry-tools .form-check-label, .am-reset-link) { font-size: 13px; }
.am-login--signin .am-entry-header > p:last-child { margin-bottom: 26px; font-size: 14px; }
.am-form-foot { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 16px 0 24px; color: #737681; font-size: 10px; line-height: 1.7; text-align: center; }
.am-form-foot i { flex-shrink: 0; font-size: 12px; }
.am-assistance { border-top: 1px solid var(--am-line); padding-top: 19px; text-align: center; font-size: 11px; color: #565964; }
.am-assistance > span { font-weight: 700; }
.am-assistance p { margin: 5px 0 0; color: var(--am-muted); line-height: 1.7; }
.am-login--signin .am-form-foot { margin-bottom: 20px; font-size: 11px; }
.am-login--signin .am-assistance { padding-top: 16px; font-size: 12px; }
.am-login .alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 7px; margin-bottom: 20px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.am-login .alert i { flex-shrink: 0; }
.am-login .alert-danger { background: #fff0f2; color: #a51b31; border: 1px solid #f6dbe0; }
.am-login .alert-success { background: #eef6f2; color: #36665a; border: 1px solid #dcebe4; }
.am-login :is(.alert-info, .alert-debug) { background: #edf4fa; color: #385b74; border: 1px solid #d6e4ee; }
.am-login .alert-warning { background: #fff8e6; color: #7d6020; border: 1px solid #f1e4bf; }
.am-login .invalid-feedback { margin-top: 7px; font-size: 12px; line-height: 1.6; color: #a51b31; }
.am-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px max(28px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--am-line); color: #797c86; font-size: 11px; line-height: 1.6; }

.am-recovery { padding: 32px 22px; }
.am-recovery-content { width: 100%; max-width: 380px; margin: auto; }
.am-recovery-content--wide { max-width: 440px; }
.am-recovery-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.am-recovery-brand .apostle-brand-logo { display: block; width: 140px; height: 120px; object-fit: contain; }
.am-recovery .am-entry-header { text-align: center; }
.am-recovery-eyebrow { margin: 0 0 8px; color: var(--am-accent); font-size: 12px; font-weight: 700; }
.am-recovery-back { margin: 24px 0 0; text-align: center; }
.am-recovery--sent {
    justify-content: center;
    padding: 32px 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 240, 0.9)),
        #fbfbfc;
}
.am-status-card {
    width: 100%;
    padding: 28px;
    border: 1px solid var(--am-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(37, 39, 45, 0.08);
}
.am-status-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 1px solid #ead0d5;
    border-radius: 8px;
    background: var(--am-rose);
    color: var(--am-accent);
    font-size: 28px;
}
.am-reset-next {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
}
.am-reset-next-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #e7e8ec;
    border-radius: 7px;
    background: #fbfbfc;
    color: #565964;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}
.am-reset-next-item i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #edf4f0;
    color: #3d6456;
    font-size: 16px;
}

@media (max-width: 1024px) {
    .am-welcome { padding: 40px 32px; }
    .am-entry { padding: 40px 32px; }
    .am-welcome h1 { font-size: 32px; }
}

@media (min-width: 761px) and (max-height: 820px) {
    .am-entry { padding-top: 24px; padding-bottom: 24px; }
    .am-entry-brand { margin-bottom: 12px; }
    .am-entry-brand .apostle-brand-logo { width: 132px; height: 108px; }
    .am-entry-header .am-eyebrow { margin-bottom: 8px; }
    .am-login--signin .am-entry-header > p:last-child { margin-bottom: 20px; }
    .am-login--signin .am-control-group { margin-bottom: 16px; }
    .am-login--signin .am-form-foot { margin-bottom: 16px; }
    .am-login--signin .am-assistance { padding-top: 12px; }
    .am-login--signin .am-footer { padding-top: 16px; padding-bottom: 16px; }
}

@media (max-width: 540px) {
    .am-status-card { padding: 24px 18px 20px; }
    .am-status-icon { width: 58px; height: 58px; font-size: 25px; }
}

@media (max-width: 760px) {
    .am-workspace { display: flex; flex-direction: column; }
    .am-entry { order: -1; width: 100%; padding: 28px 22px 32px; }
    .am-form-content { max-width: 380px; }
    .am-entry-header > p:last-child { margin-bottom: 24px; }
    .am-welcome { width: 100%; padding: 24px 22px 28px; border-top: 1px solid #dce7df; }
    .am-fleet { max-width: 380px; }
    .am-welcome-copy { max-width: 380px; padding-bottom: 22px; }
    .am-welcome h1 { font-size: 26px; }
    .am-fleet figcaption { justify-content: center; margin-top: 12px; }
    .am-footer { padding: 16px 22px; flex-wrap: wrap; justify-content: center; gap: 4px 16px; text-align: center; }
}

@media (max-width: 380px) {
    .am-entry { padding: 24px 18px 28px; }
    .am-welcome { padding: 22px 18px 26px; }
    .am-entry-tools { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .am-login * { transition: none; }
}
