:root {
    --ap-ink: #17221e;
    --ap-muted: #64716b;
    --ap-line: #dce4df;
    --ap-canvas: #f2f6f3;
    --ap-white: #ffffff;
    --ap-green: #075a43;
    --ap-green-dark: #034331;
    --ap-green-soft: #e7f3ee;
    --ap-gold: #e6a719;
    --ap-gold-soft: #fff4d8;
    --ap-blue-soft: #eaf3f8;
    --ap-danger: #a63d3d;
    --ap-danger-soft: #fff0ef;
    --ap-shadow: 0 22px 64px rgba(28, 49, 40, .14);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    background: var(--ap-canvas);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ap-ink);
    background: var(--ap-canvas);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

.ap-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 22px 20px;
}

.ap-shell {
    width: min(100%, 1010px);
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(340px, 43%) minmax(0, 57%);
    overflow: hidden;
    border: 1px solid rgba(7, 90, 67, .12);
    border-radius: 8px;
    background: var(--ap-white);
    box-shadow: var(--ap-shadow);
}

.ap-context {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 38px 40px 34px;
    color: #f8fffb;
    background: var(--ap-green-dark);
}

.ap-context::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--ap-gold);
}

.ap-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
}

.ap-brand strong,
.ap-brand span {
    display: block;
}

.ap-brand strong {
    max-width: 230px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.ap-brand span {
    margin-top: 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 11.5px;
    font-weight: 500;
}

.ap-context-copy {
    margin-top: 74px;
}

.ap-context-copy h2 {
    max-width: 330px;
    margin: 0;
    color: #fff;
    font-size: 29px;
    line-height: 1.18;
    font-weight: 800;
}

.ap-journey {
    display: grid;
    gap: 19px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.ap-journey li {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.ap-journey li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 41px;
    bottom: -19px;
    left: 20px;
    width: 1px;
    background: rgba(255, 255, 255, .16);
}

.ap-step-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #f4c861;
    background: rgba(255, 255, 255, .08);
    font-size: 16px;
}

.ap-journey strong,
.ap-journey small {
    display: block;
}

.ap-journey strong {
    padding-top: 2px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.ap-journey small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .6);
    font-size: 11.5px;
    line-height: 1.5;
}

.ap-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px clamp(38px, 5vw, 68px) 44px;
    background: #fff;
}

.ap-mobile-brand {
    display: none;
}

.ap-form-head {
    margin-bottom: 32px;
}

.ap-form-mark {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 8px;
    color: var(--ap-green);
    background: var(--ap-green-soft);
    font-size: 18px;
}

.ap-kicker {
    margin: 0 0 8px !important;
    color: var(--ap-green) !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.ap-form-head h1 {
    margin: 0;
    color: var(--ap-ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.ap-form-head > p:last-child {
    max-width: 470px;
    margin: 10px 0 0;
    color: var(--ap-muted);
    font-size: 13px;
    line-height: 1.65;
}

.ap-form-head strong {
    color: var(--ap-ink);
    font-weight: 700;
}

.ap-form {
    display: grid;
    gap: 21px;
}

.ap-field {
    min-width: 0;
}

.ap-field label {
    display: block;
    margin-bottom: 8px;
    color: #25312c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.ap-field small {
    display: block;
    margin-top: 7px;
    color: #79857f;
    font-size: 10.5px;
    line-height: 1.45;
}

.ap-control {
    position: relative;
    min-width: 0;
}

.ap-control > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 16px;
    width: 18px;
    color: #7a8982;
    font-size: 14px;
    text-align: center;
    transform: translateY(-50%);
    pointer-events: none;
}

.ap-control input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 48px;
    border: 1px solid #cad5cf;
    border-radius: 7px;
    outline: none;
    color: var(--ap-ink);
    background: #fbfcfb;
    font-size: 13px;
    line-height: normal;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ap-control input::placeholder {
    color: #a0aaa5;
}

.ap-control input:focus {
    border-color: var(--ap-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 90, 67, .1);
}

.ap-control-code input {
    height: 58px;
    padding-right: 18px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.ap-primary {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 4px;
    padding: 13px 18px;
    border: 1px solid var(--ap-green);
    border-radius: 7px;
    color: #fff;
    background: var(--ap-green);
    box-shadow: 0 8px 18px rgba(7, 90, 67, .18);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.ap-primary:hover {
    border-color: var(--ap-green-dark);
    background: var(--ap-green-dark);
}

.ap-primary:active {
    transform: translateY(1px);
}

.ap-primary:focus-visible,
.ap-text-button:focus-visible,
.ap-help a:focus-visible {
    outline: 3px solid rgba(230, 167, 25, .42);
    outline-offset: 3px;
}

.ap-primary:disabled {
    cursor: wait;
    opacity: .72;
}

.ap-alert {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 23px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 7px;
    font-size: 11.5px;
    line-height: 1.55;
    font-weight: 600;
}

.ap-alert i {
    padding-top: 2px;
    font-size: 15px;
    text-align: center;
}

.ap-alert-error {
    border-color: #f0c8c4;
    color: var(--ap-danger);
    background: var(--ap-danger-soft);
}

.ap-alert-success {
    border-color: #bcdccc;
    color: var(--ap-green-dark);
    background: var(--ap-green-soft);
}

.ap-secondary-actions {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e7ece9;
}

.ap-secondary-actions form {
    margin: 0;
}

.ap-text-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    color: var(--ap-green);
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.ap-text-button:hover {
    background: var(--ap-green-soft);
}

.ap-text-button:disabled {
    color: #8b9791;
    cursor: default;
}

.ap-text-button:disabled:hover {
    background: transparent;
}

.ap-muted-button {
    color: #68756f;
}

.ap-help {
    margin: auto 0 0;
    padding-top: 28px;
    color: #7b8781;
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

.ap-help a {
    color: var(--ap-green);
    font-weight: 800;
    text-decoration: none;
}

.ap-legal {
    margin: 15px 0 0;
    color: #829089;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 800px) {
    .ap-page {
        justify-content: flex-start;
        padding: 0;
    }

    .ap-shell {
        width: 100%;
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ap-context {
        display: none;
    }

    .ap-workspace {
        min-height: 100vh;
        justify-content: center;
        padding: 38px clamp(22px, 7vw, 48px) 28px;
    }

    .ap-mobile-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 46px;
        color: var(--ap-green-dark);
        font-size: 11px;
        font-weight: 800;
    }

    .ap-mobile-brand img {
        width: 35px;
        height: 35px;
        object-fit: contain;
    }

    .ap-form-head,
    .ap-form,
    .ap-alert,
    .ap-secondary-actions,
    .ap-help {
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    .ap-legal {
        display: none;
    }
}

@media (max-width: 460px) {
    .ap-workspace {
        justify-content: flex-start;
        padding: 26px 18px 24px;
    }

    .ap-mobile-brand {
        margin-bottom: 38px;
    }

    .ap-form-mark {
        width: 42px;
        height: 42px;
        margin-bottom: 17px;
    }

    .ap-form-head {
        margin-bottom: 27px;
    }

    .ap-form-head h1 {
        font-size: 26px;
    }

    .ap-control input,
    .ap-primary {
        min-height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
