*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    color: #183455;
    background: #F4F7FA;
}

button,
input,
textarea {
    font-family: inherit;
}

html.ap-auth-root,
html.ap-auth-root body {
    min-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html.ap-auth-root::-webkit-scrollbar,
html.ap-auth-root body::-webkit-scrollbar,
body.ap-auth::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.ap-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.9fr);
    background: #F4F7FA;
}

/* ── Left hero ───────────────────────────────────────── */
.ap-hero {
    position: relative;
    min-height: 100vh;
    color: #183455;
    background-color: #E8EEF4;
    background-position: center right -406px;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.ap-hero-shade {
    position: absolute;
    inset: 0;
    width: 70%;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 8.22%, #F5F9FE 100%);
    pointer-events: none;
}

.ap-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 36px 48px 28px;
}

.ap-hero-top {
    display: flex;
    align-items: center;
}

.ap-logo {
    display: block;
    width: 236px;
    height: auto;
    max-width: 100%;
}

.ap-hero-body {
    max-width: 560px;
    margin-top: 42px;
}

.ap-hero-body h2 {
    margin: 0 0 6px;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 60px;
    line-height: 74px;
    letter-spacing: 0;
    font-weight: 800;
    color: #183455;
    text-align: left;
}

.ap-hero-body h2 span {
    color: #479955;
    width: auto;
    max-width: 100%;
    display: block;
}

.ap-hero-lead {
    margin: 0 0 17px;
    max-width: 520px;
    color: #000000;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 22px;
    line-height: 34px;
    letter-spacing: 0;
    font-weight: 400;
    text-align: left;
}

.ap-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 520px;
}

.ap-features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid rgba(24, 52, 85, 0.1);
}

.ap-features li:first-child {
    padding-top: 0;
    border-top: 0;
}

.ap-features li:last-child {
    padding-bottom: 0;
}

.ap-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
}

.ap-feature-icon img {
    width: 48px;
    height: 48px;
    display: block;
}

.ap-features strong,
.ap-features em {
    display: block;
}

.ap-features strong {
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 34px;
    color: #183455;
    text-align: left;
}

.ap-features em {
    margin-top: 0;
    color: #000000;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-style: normal;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 26px;
    text-align: left;
}

.ap-hero-foot {
    margin-top: auto;
    padding-top: 40px;
}

.ap-hero-foot>p:first-child {
    margin: 0;
    color: #64748B;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    text-align: left;
}

.ap-trust {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px !important;
    color: #64748B;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 22px;
    text-align: left;
}

.ap-trust svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #64748B;
}

.ap-trust a {
    color: #64748B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ap-trust a:hover {
    color: #183455;
}

/* Floating cards */
.ap-float {
    position: absolute;
    z-index: 2;
    background: #FFFFFF;
    border: 0;
    box-shadow: 0px 1.76068px 13.2051px rgba(0, 0, 0, 0.16);
    border-radius: 13.2051px;
}

.ap-float-profile {
    top: 49%;
    right: 70px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 198.35px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0px 1.76068px 13.2051px rgba(0, 0, 0, 0.16);
    border-radius: 13.2051px;
}

.ap-float-avatar {
    width: 51px;
    height: 51px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: 0 0 51px;
    background: #E8F5EC;
}

.ap-float-profile-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.ap-float-profile strong,
.ap-float-profile em {
    display: block;
}

.ap-float-profile strong {
    color: #091A35;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14.09px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: normal;
}

.ap-float-profile em {
    margin-top: 1px;
    color: #959FAF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 12.32px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: normal;
}

.ap-float-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    padding: 2px 7px 2px 5px;
    border: 1px solid #479955;
    border-radius: 999px;
    background: transparent;
    color: #479955;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 10.56px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
}

.ap-float-badge svg {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
}

.ap-float-progress {
    left: 57%;
    bottom: 18%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 280px;
    padding: 12px 15px;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 0px 1.76068px 13.2051px rgba(0, 0, 0, 0.16);
    border-radius: 13.2051px;
}

.ap-float-progress-title {
    display: block;
    color: #091A35;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: normal;
    text-align: left;
}

.ap-float-progress-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ap-float-ring {
    position: relative;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
}

.ap-float-ring svg {
    width: 60px;
    height: 60px;
    display: block;
}

.ap-float-ring strong {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #091A35;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.ap-float-progress-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ap-float-progress-body li {
    position: relative;
    padding-left: 20px;
    color: #243957;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 22px;
    text-align: left;
}

.ap-float-progress-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #479955 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ── Right form pane ─────────────────────────────────── */
.ap-form-pane {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 48px 44px 28px;
    background: linear-gradient(159.51deg, #002A57 55.78%, #3F8D63 123.96%);
    border-radius: 80px 0 0 80px;
    color: #FFFFFF;
    box-shadow: -12px 0 40px rgba(24, 52, 85, 0.18);
}

.ap-form-main {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ap-form-main h1 {
    margin: 0 0 8px;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 48px;
    line-height: 52px;
    letter-spacing: 0;
    font-weight: 700;
    color: #FFFFFF;
}

.ap-subtitle,
.ap-lead {
    margin: 0 0 14px;
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
}

.ap-rule {
    display: block;
    width: 40px;
    height: 6px;
    margin: 0 0 28px;
    line-height: 0;
}

.ap-rule svg {
    display: block;
    width: 40px;
    height: 6px;
}

.ap-field {
    margin-bottom: 16px;
}

.ap-field label,
.ap-field-row label {
    display: block;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: normal;
}

.ap-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ap-forgot {
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: normal;
    text-align: right;
    text-decoration: none;
    margin-bottom: 8px;
    white-space: nowrap;
}

.ap-forgot:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.ap-input,
.ap-password {
    position: relative;
}

.ap-input-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #98A2B3;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ap-input-ico svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ap-field input,
.ap-input input {
    width: 100%;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #FFFFFF;
    color: #183455;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.ap-input input {
    padding-left: 44px;
}

.ap-password input {
    padding-right: 46px;
}

.ap-field input:-webkit-autofill,
.ap-field input:-webkit-autofill:hover,
.ap-field input:-webkit-autofill:focus,
.ap-input input:-webkit-autofill,
.ap-input input:-webkit-autofill:hover,
.ap-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #183455;
}

.ap-field input::placeholder,
.ap-input input::placeholder {
    color: #98A2B3;
}

.ap-field input:focus,
.ap-input input:focus {
    border-color: #459852;
    box-shadow: 0 0 0 3px rgba(69, 152, 82, 0.18);
}

.ap-password input::-ms-reveal,
.ap-password input::-ms-clear,
.ap-password input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.ap-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #98A2B3;
    cursor: pointer;
    padding: 6px;
}

.ap-eye svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ap-eye .ap-eye-on,
.ap-eye.is-revealed .ap-eye-off {
    display: none !important;
}

.ap-eye.is-revealed .ap-eye-on {
    display: block !important;
}

.ap-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 22px;
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: normal;
    cursor: pointer;
}

.ap-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #459852;
}

.ap-btn {
    width: 100%;
    height: 56px;
    border-radius: 10px;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: normal;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ap-btn-primary {
    border: 1px solid #459852;
    background: #459852;
    color: #FFFFFF;
}

.ap-btn-primary:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #002A57;
}

.ap-btn-primary:disabled {
    background: #C5C9D1;
    border-color: #C5C9D1;
    cursor: default;
}

.ap-btn-primary svg {
    width: 18px;
    height: 18px;
}

.ap-btn-sso,
.ap-btn-ghost {
    border: 0;
    background: #FFFFFF;
    color: #183455;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: normal;
}

.ap-btn-sso:hover,
.ap-btn-ghost:hover {
    background: #F3F4F6;
}

.ap-btn-sso svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #183455;
}

.ap-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.ap-or::before,
.ap-or::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
}

.ap-or span {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #586370;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
}

.ap-sso-note {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.55;
}

.ap-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 28px 0 0;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
}

.ap-help {
    margin-top: 20px;
    padding-top: 0;
}

.ap-help summary {
    list-style: none;
    cursor: pointer;
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
    transition: opacity 0.15s ease;
}

.ap-help summary:hover {
    opacity: 0.9;
}

.ap-help[open] summary {
    font-weight: 500;
}

.ap-help summary::-webkit-details-marker {
    display: none;
}

.ap-help-chevron {
    width: 14px;
    height: 8px;
    flex: 0 0 14px;
    display: block;
    transition: transform 0.15s ease;
}

.ap-help[open] .ap-help-chevron {
    transform: rotate(180deg);
}

.ap-help-body {
    margin-top: 14px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 22px;
}

.ap-help-body p {
    margin: 0;
}

.ap-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ap-help-link:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #002A57;
    text-decoration: none;
}

.ap-help-note {
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 20px;
}

.ap-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
}

.ap-back:hover {
    color: #E8F5EC;
}

.ap-back svg {
    width: 16px;
    height: 16px;
}

.ap-banner {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
    transition: opacity 0.28s ease;
}

.ap-banner.is-hiding,
.ap-modal-notice.is-hiding {
    opacity: 0;
}

.ap-banner-locked {
    background: #FEE2E2;
    color: #991B1B;
}

.ap-banner-expired {
    background: #FEF3C7;
    color: #92400E;
}

.ap-banner-ok {
    background: #E8F5EC;
    color: #166534;
}

.ap-version {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 18px 0 0;
    color: #FFFFFF;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 26px;
}

.ap-version svg {
    width: 20px;
    height: 3px;
    flex: 0 0 20px;
    display: block;
}

.ap-form-logo {
    display: none;
}

.ap-form-foot {
    display: none;
}

/* Legacy / shared app chrome (if used) */
.ap-brand,
.ap-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-brand {
    margin-bottom: 28px;
}

.ap-brand-name,
.ap-topbar-brand span {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ap-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #183455;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.ap-app-body {
    background: #f4f6f8;
    color: #183455;
}

.ap-topbar {
    height: 68px;
    background: #183455;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.ap-topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.ap-topbar-user a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 12px;
}

.ap-app {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.ap-kicker {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.ap-app-head h1 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.ap-app-head p {
    color: #5d6672;
}

.ap-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    padding: 8px 8px 12px;
}

.ap-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
}

.ap-card-head h2 {
    margin: 0;
    font-size: 18px;
}

.ap-card-head span {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.ap-empty {
    margin: 0;
    padding: 18px 14px 22px;
    color: #66707c;
}

.ap-table-wrap {
    overflow-x: auto;
}

.ap-table {
    width: 100%;
    border-collapse: collapse;
}

.ap-table th,
.ap-table td {
    text-align: left;
    padding: 12px 14px;
    border-top: 1px solid #eef0f3;
    font-size: 14px;
}

.ap-table th {
    color: #6d7580;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Modals */
body.ap-modal-open {
    overflow: hidden;
}

.ap-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(24, 52, 85, 0.55);
}

.ap-modal[hidden] {
    display: none !important;
}

.ap-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    border-top: 3px solid #183455;
    padding: 28px 24px 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    color: #183455;
}

.ap-modal-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: #000;
}

.ap-modal-card p {
    margin: 0 0 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ap-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ap-modal-card label {
    display: block;
    margin-bottom: 8px;
    color: #183455;
    font-size: 14px;
    font-weight: 600;
}

.ap-modal-card textarea,
.ap-modal-card input[type="email"] {
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    color: #183455;
    outline: none;
    background: #fff;
}

.ap-modal-card textarea {
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
}

.ap-modal-card input[type="email"] {
    height: 46px;
    padding: 0 14px;
}

.ap-modal-card textarea:focus,
.ap-modal-card input[type="email"]:focus {
    border-color: #459852;
    box-shadow: 0 0 0 3px rgba(69, 152, 82, 0.12);
}

.ap-modal-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ap-modal-btn svg {
    width: 16px;
    height: 16px;
}

.ap-modal-btn:disabled,
.ap-modal-btn.is-sending {
    opacity: 1;
    background: #C5C9D1;
    color: #fff;
    cursor: wait;
    pointer-events: none;
}

.ap-modal-btn.is-readonly:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ap-modal-btn-muted {
    background: #8d97a3;
    color: #fff;
}

.ap-modal-btn-primary {
    background: #459852;
    color: #fff;
}

.ap-modal-btn-primary:hover:not(:disabled) {
    background: #183455;
}

.ap-modal-lock {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #E8F5EC;
    color: #459852;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ap-modal-lock svg {
    width: 20px;
    height: 20px;
}

.ap-modal-notice {
    margin: 0 0 12px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecec;
    color: #9b2c2c;
    font-size: 13px !important;
    transition: opacity 0.28s ease;
}

.ap-modal-notice.is-ok {
    background: #e8f7ee;
    color: #17693b;
}

.ap-pill {
    display: inline-block;
    background: #e8f7ee;
    color: #17693b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* OTP / verify */
.ap-otp {
    display: flex;
    gap: 8px;
    width: 100%;
}

.ap-otp-box {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #183455;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    outline: none;
}

.ap-otp-box:focus {
    border-color: #459852;
    box-shadow: 0 0 0 3px rgba(69, 152, 82, 0.18);
}

.ap-resend {
    display: block;
    width: 100%;
    margin: 18px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.ap-text-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ap-text-link-strong {
    margin-top: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
    text-decoration: underline;
}

.ap-text-link:hover {
    color: #85b88e;
}

.ap-verify .ap-help,
.ap-verified .ap-help {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.ap-verified-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ap-verified-head h1 {
    margin: 0;
}

.ap-verified-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E8F5EC;
    color: #459852;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.ap-verified-icon svg {
    width: 18px;
    height: 18px;
}

.ap-role-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(69, 152, 82, 0.18);
    color: #A7E3B4;
    font-size: 13px;
    font-weight: 600;
}

.ap-verified-copy {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.55;
}

.ap-modal-card-methods {
    max-width: 600px;
    padding: 28px 28px 24px;
    border-top: 0;
    border-radius: 16px;
    color: #000; border-top: 4px solid #183455;
}

.ap-modal-card-methods .ap-modal-close {
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.ap-modal-card-methods .ap-modal-close svg {
    width: 15px;
    height: auto;
    display: block;
}

.ap-modal-methods-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 28px;
    margin-bottom: 22px;
}

.ap-modal-methods-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin-bottom: 0;
}

.ap-modal-methods-icon svg {
    width: 52px;
    height: 52px;
    display: block;
}

.ap-modal-methods-head-text {
    flex: 1;
    min-width: 0;
}

.ap-modal-card-methods h2 {
    margin: 0 0 0px;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 30px;
    color: #000000;
}

.ap-modal-card-methods .ap-modal-methods-head-text > p,
.ap-modal-card-methods .ap-modal-methods-head > p {
    margin: 0;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
    color: #666666;
}

.ap-modal-btn-pill {
    border-radius: 999px;
    height: 52px;
    background: #459852;
}

.ap-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 22px;
}

.ap-modal-card label.ap-method {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ap-modal-card label.ap-method:hover:not(.is-disabled) {
    border-color: #479955;
}

.ap-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ap-modal-card label.ap-method.is-selected,
.ap-modal-card label.ap-method:has(input:checked),
.ap-method.is-selected {
    background: #F3FAF6;
    border-color: #479955;
}

.ap-method.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ap-method-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    box-sizing: border-box;
}

.ap-method-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}

.ap-modal-card label.ap-method.is-selected .ap-method-radio,
.ap-modal-card label.ap-method:has(input:checked) .ap-method-radio,
.ap-method.is-selected .ap-method-radio {
    border-color: #479955;
    border-width: 2px;
}

.ap-modal-card label.ap-method.is-selected .ap-method-radio::after,
.ap-modal-card label.ap-method:has(input:checked) .ap-method-radio::after,
.ap-method.is-selected .ap-method-radio::after {
    background: #479955;
}

.ap-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D9F2E2;
    color: #479955;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.ap-method.is-selected .ap-method-icon {
    background: #D9F2E2;
    color: #479955;
}

.ap-method-icon svg {
    width: 18px;
    height: 18px;
}

.ap-method-copy {
    flex: 1;
    min-width: 0;
}

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

.ap-method-copy strong {
    color: #000;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.ap-method-copy span {
    margin-top: 2px;
    color: #666;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}

.ap-modal-methods-actions {
    display: flex;
    justify-content: flex-end;
}

.ap-modal-btn-send {
    width: auto;
    min-width: 128px;
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: #459852;
    font-family: "Lexend Deca", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.ap-modal-btn-send:hover:not(:disabled) {
    background: #183455;
}

.ap-method-check {
    display: none;
}

@media (min-width: 1600px) {
    .ap-page {
        grid-template-columns: minmax(0, 1.65fr) minmax(400px, 0.85fr);
    }

    .ap-form-main {
        max-width: 420px;
    }

    .ap-form-pane {
        padding: 56px 52px 32px;
        border-radius: 80px 0 0 80px;
        margin-left: -57px;
        z-index: 2;
    }

    .ap-hero-body h2 span {
        width: 620px;
        max-width: initial !important;
    }
}

@media (max-width: 1689px) {
    .ap-hero-body h2 {
        font-size: 52px;
        line-height: 62px;
    }
}

/* Mid desktop: keep copy + floats clear of the form */
@media (max-width: 1599px) {
    .ap-page {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
    }



    .ap-hero-shade {
        width: min(72%, 720px);
        background: linear-gradient(270deg,
                rgba(245, 249, 254, 0) 0%,
                rgba(245, 249, 254, 0.42) 22%,
                rgba(245, 249, 254, 0.78) 52%,
                rgba(245, 249, 254, 0.94) 100%);
        backdrop-filter: blur(22px) saturate(1.08);
        -webkit-backdrop-filter: blur(22px) saturate(1.08);
        -webkit-mask-image: linear-gradient(90deg, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 58%, rgba(0, 0, 0, 0.55) 78%, transparent 100%);
    }

    .ap-hero-inner {
        padding: 28px 28px 24px;
    }

    .ap-logo {
        width: 180px;
    }

    .ap-hero-body {
        max-width: 420px;
        margin-top: 28px;
    }

    .ap-hero-body h2 {
        font-size: 42px;
        line-height: 52px;
    }

    .ap-hero-lead {
        max-width: 380px;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 14px;
    }

    .ap-features {
        max-width: 380px;
    }

    .ap-features li {
        padding: 12px 0;
        gap: 12px;
    }

    .ap-features strong {
        font-size: 18px;
        line-height: 26px;
    }

    .ap-features em {
        font-size: 15px;
        line-height: 22px;
    }

    .ap-feature-icon,
    .ap-feature-icon img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .ap-float-profile {
        top: 44%;
        right: 43px;
        left: inherit;
        width: 180px;
        padding: 8px 10px;
        transform: scale(0.94);
        transform-origin: left center;
    }

    .ap-float-progress {
        left: 54%;
        bottom: 14%;
        width: 240px;
        padding: 10px 12px;
    }

    .ap-form-pane {
        z-index: 2;
        margin-left: -40px;
        border-radius: 64px 0 0 64px;
        padding: 40px 28px 24px;
    }

    .ap-form-main {
        max-width: 360px;
    }

    .ap-form-main h1 {
        font-size: 40px;
        line-height: 44px;
    }
}

@media (max-width: 1399px) {
    .ap-page {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    }



    .ap-hero-shade {
        width: min(78%, 640px);
        background: linear-gradient(270deg,
                rgba(245, 249, 254, 0) 0%,
                rgba(245, 249, 254, 0.55) 18%,
                rgba(245, 249, 254, 0.86) 48%,
                rgba(245, 249, 254, 0.97) 100%);
        backdrop-filter: blur(28px) saturate(1.1);
        -webkit-backdrop-filter: blur(28px) saturate(1.1);
        -webkit-mask-image: linear-gradient(90deg, #000 62%, rgba(0, 0, 0, 0.5) 82%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 62%, rgba(0, 0, 0, 0.5) 82%, transparent 100%);
    }

    .ap-hero-body {
        max-width: 360px;
    }

    .ap-hero-body h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .ap-hero-lead,
    .ap-features {
        max-width: 340px;
    }


    .ap-form-pane {
        margin-left: -32px;
        border-radius: 56px 0 0 56px;
        padding: 32px 24px 20px;
    }
}

/* Tablet / mobile: form first, hero below, logo on top */
@media (max-width: 1199px) {
    .ap-page {
        grid-template-columns: 1fr;
        background: #F5F9FE;
    }

    .ap-form-pane {
        order: 1;
        position: relative;
        z-index: 2;
        margin: 0;
        border-radius: 0 0 48px 48px;
        min-height: auto;
        padding: 28px 28px 36px;
        box-shadow: 0 16px 40px rgba(24, 52, 85, 0.16);
    }

    .ap-form-logo {
        display: block;
        margin: 0 auto 28px;
        max-width: 420px;
    }

    .ap-form-logo .ap-logo {
        width: 168px;
        filter: brightness(0) invert(1);
    }

    .ap-form-main {
        max-width: 420px;
    }

    .ap-form-main h1 {
        font-size: 40px;
        line-height: 44px;
    }

    .ap-version {
        justify-content: center;
    }

    .ap-hero {
        order: 2;
        min-height: 0;
        margin-top: -40px;
        padding-top: 40px;
        background-position: center 28%;
        background-size: cover;
    }

    .ap-hero-top {
        display: none;
    }

    .ap-hero-shade {
        width: 100%;
        background: linear-gradient(180deg,
                rgba(245, 249, 254, 0.2) 0%,
                rgba(245, 249, 254, 0.88) 38%,
                rgba(245, 249, 254, 0.96) 100%);
    }

    .ap-hero-inner {
        min-height: 0;
        padding: 48px 28px 28px;
    }

    .ap-hero-body {
        max-width: 560px;
        margin-top: 0;
    }

    .ap-hero-body h2 {
        font-size: 34px;
        line-height: 42px;
    }

    .ap-hero-lead {
        max-width: 480px;
        font-size: 16px;
        line-height: 26px;
    }

    .ap-features {
        max-width: 480px;
        display: flex;
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }

    .ap-features li:last-child {
        grid-column: 1 / -1;
    }

    .ap-features strong {
        font-size: 16px;
        line-height: 24px;
    }

    .ap-features em {
        font-size: 14px;
        line-height: 20px;
    }

    .ap-float-profile {
        top: auto;
        bottom: 28px;
        left: auto;
        right: 28px;
        transform: none;
        z-index: 3;
    }

    .ap-float-progress {
        display: none;
    }

    .ap-hero-foot {
        padding-top: 24px;
    }
}

@media (max-width: 720px) {

    .ap-btn-sso,
    .ap-btn-ghost {
        font-size: 16px;
    }

    .ap-form-pane {
        border-radius: 0 0 36px 36px;
        padding: 24px 20px 28px;
    }

    .ap-form-logo {
        margin-bottom: 22px;
    }

    .ap-form-logo .ap-logo {
        width: 148px;
    }

    .ap-form-main h1 {
        font-size: 36px;
        line-height: 40px;
    }

    .ap-hero {
        margin-top: -28px;
        padding-top: 28px;
        background-position: center right;
    }

    .ap-hero-inner {
        padding: 19px 20px 3px;
    }

    .ap-hero-body h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .ap-hero-lead {
        font-size: 15px;
        line-height: 24px;
    }

    .ap-features {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ap-features li:last-child {
        grid-column: auto;
    }

    .ap-float-profile {
        display: none;
    }

    .ap-hero-foot>p:first-child {
        font-size: 14px;
        line-height: 22px;
    }
    .ap-or span {
        width: 44px;
        height: 44px;
    }
}
@media (max-width:586px) {
.ap-modal-methods-head{ align-items: start;}
.ap-modal-card-methods h2 {
	font-size: 19px;
	line-height: 23px;
}
.ap-modal-card-methods .ap-modal-methods-head-text > p, .ap-modal-card-methods .ap-modal-methods-head > p {

	font-size: 15px;

	line-height: 20px;

}
.ap-modal-methods-head{gap: 10px;
    padding-right: 0;}
    .ap-modal-card-methods .ap-modal-close {
        top: 7px;
        right: 11px;
        width: 28px;
    }
    .ap-modal-btn-send{font-size: 16px;height: 40px;}

    .ap-modal-methods-icon svg {
        width: 42px;
        height: 42px;
        display: block;
    }
    .ap-modal-methods-icon {
     
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
   
    }
}

@media (max-width: 480px) {
    .ap-hero-body h2 {
        font-size: 26px;
        line-height: 34px;
    }

    .ap-form-main h1 {
        font-size: 29px;
        line-height: 36px;
    }

    .ap-otp {
        gap: 6px;
    }

    .ap-otp-box {
        height: 48px;
        font-size: 18px;
    }
}