:root {
    --auth-navy: #293a6c;
    --auth-navy-dark: #1d2a52;
    --auth-yellow: #fed700;
    --auth-ink: #172033;
    --auth-muted: #6b7280;
    --auth-border: #dfe4ec;
    --auth-surface: #ffffff;
    --auth-background: #f5f7fb;
    --auth-danger: #b42318;
}

.auth-stage {
    position: relative;
    overflow: hidden;
    padding: 42px 0 54px;
    background:
        radial-gradient(circle at 10% 10%, rgba(254, 215, 0, 0.14), transparent 26%),
        radial-gradient(circle at 90% 85%, rgba(41, 58, 108, 0.1), transparent 28%),
        var(--auth-background);
}

.auth-stage::before,
.auth-stage::after {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(41, 58, 108, 0.08);
    border-radius: 50%;
    content: "";
}

.auth-stage::before {
    top: -120px;
    right: 8%;
}

.auth-stage::after {
    bottom: -150px;
    left: 6%;
}

.auth-stage--compact .auth-card {
    max-width: 460px;
}

.auth-card {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    overflow: visible;
    border: 1px solid rgba(41, 58, 108, 0.09);
    border-radius: 16px;
    background: var(--auth-surface);
    box-shadow: 0 18px 44px rgba(24, 35, 67, 0.12);
}

.auth-card__accent {
    height: 5px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--auth-navy) 0 72%, var(--auth-yellow) 72% 100%);
}

.auth-card__body {
    padding: 30px 34px 34px;
}

.auth-card__header {
    margin-bottom: 22px;
    text-align: center;
}

.auth-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    color: var(--auth-navy);
    background: rgba(254, 215, 0, 0.22);
    font-size: 18px;
}

.auth-card__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--auth-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card__title {
    margin: 0 0 6px;
    color: var(--auth-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.auth-card__subtitle {
    max-width: 590px;
    margin: 0 auto;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.5;
}

.auth-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: var(--auth-danger);
    background: #fffbfa;
    font-size: 13px;
    line-height: 1.5;
}

.auth-section + .auth-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.auth-section__heading {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.auth-section__number {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--auth-navy);
    background: rgba(254, 215, 0, 0.24);
    font-size: 12px;
    font-weight: 700;
}

.auth-section__title {
    margin: 0;
    color: var(--auth-ink);
    font-size: 18px;
    font-weight: 700;
}

.auth-section__description {
    margin: 2px 0 0;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.auth-field .required {
    color: var(--auth-danger);
}

.auth-control-wrap {
    position: relative;
}

.auth-control-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #98a2b3;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-form .auth-control,
.auth-form .auth-select {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    color: var(--auth-ink);
    background-color: #fff;
    font-size: 15px;
    line-height: 22px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-form .auth-control-wrap > i + .auth-control,
.auth-form .auth-control-wrap > i + .auth-select {
    padding-left: 40px;
}

.auth-form .auth-control::placeholder {
    color: #98a2b3;
}

.auth-form .auth-control:focus,
.auth-form .auth-select:focus {
    border-color: var(--auth-navy);
    box-shadow: 0 0 0 4px rgba(41, 58, 108, 0.1);
}

.auth-form .auth-control:disabled,
.auth-form .auth-select:disabled {
    cursor: not-allowed;
    color: #98a2b3;
    background-color: #f2f4f7;
}

.auth-form .auth-select {
    padding-right: 42px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.auth-form .auth-control-wrap .auth-select {
    background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
}

.auth-field__error {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 7px;
    color: var(--auth-danger);
    font-size: 13px;
}

.auth-field__hint {
    display: block;
    margin-top: 7px;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 18px;
}

.auth-checkbox {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    color: #475467;
    cursor: pointer;
    font-size: 14px;
}

.auth-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--auth-navy);
}

.auth-link {
    color: var(--auth-navy);
    font-size: 14px;
    font-weight: 600;
}

.auth-link:hover {
    color: #182544;
    text-decoration: underline;
}

.auth-submit {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 9px 20px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-navy), var(--auth-navy-dark));
    box-shadow: 0 10px 22px rgba(41, 58, 108, 0.2);
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-submit:hover {
    color: #fff;
    box-shadow: 0 13px 28px rgba(41, 58, 108, 0.28);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.auth-card__footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #edf0f5;
    color: var(--auth-muted);
    text-align: center;
    font-size: 14px;
}

.auth-security-note {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    color: #667085;
    font-size: 11px;
}

@media (max-width: 767px) {
    .auth-stage {
        padding: 28px 0 38px;
    }

    .auth-card {
        border-radius: 14px;
    }

    .auth-card__accent {
        border-radius: 14px 14px 0 0;
    }

    .auth-card__body {
        padding: 24px 20px 26px;
    }

    .auth-card__title {
        font-size: 24px;
    }

    .auth-options {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
    }
}
.portal-menu {
    position: relative;
}

.portal-menu .portal-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.portal-menu .portal-menu-trigger > i {
    font-size: 14px;
}

.portal-menu .portal-menu-trigger span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portal-menu .portal-menu-dropdown {
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    min-width: 280px;
    padding: 0;
    overflow: visible;
    border: 1px solid #e1e6ef;
    border-top: 3px solid #fed700;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(23, 39, 76, .18);
}

.portal-menu .portal-menu-dropdown::before {
    display: none;
}

.li-header-4 .ht-menu > li.portal-menu .portal-menu-dropdown span {
    color: inherit;
    font-size: inherit;
}

.portal-menu-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 18px 14px;
    border-bottom: 1px solid #edf0f5;
}

.portal-menu-heading-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff4b8;
    color: #293a6c !important;
}

.portal-menu-heading strong,
.portal-menu-heading small {
    display: block;
}

.portal-menu-heading strong {
    color: #18264e;
    font-size: 14px;
    line-height: 1.35;
}

.portal-menu-heading small {
    margin-top: 2px;
    color: #77829a;
    font-size: 11px;
}

.portal-menu-links {
    padding: 7px;
}

.portal-menu-links > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-left: 3px solid transparent;
    border-radius: 5px;
    color: #34415f;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.portal-menu-links > a:hover,
.portal-menu-links > a.is-current {
    border-left-color: #fed700;
    background: #f4f7fc;
    color: #1d3168;
}

.portal-menu-links > a.is-current {
    box-shadow: inset 0 0 0 1px #e7ebf3;
}

.portal-menu-links > a > i:first-child {
    width: 24px;
    color: #61708d;
    font-size: 16px;
    text-align: center;
}

.portal-menu-links > a > span {
    min-width: 0;
    flex: 1;
}

.portal-menu-links strong,
.portal-menu-links small {
    display: block;
}

.portal-menu-links strong {
    color: #263657;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.portal-menu-links small {
    margin-top: 2px;
    color: #748097;
    font-size: 11px;
    line-height: 1.4;
}

.portal-menu-links > a:hover strong,
.portal-menu-links > a.is-current strong {
    color: #14295f;
}

.portal-menu-arrow {
    color: #a6afbf;
}

.portal-menu-store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 14px;
    border-top: 1px solid #edf0f5;
    border-radius: 0 0 5px 5px;
    background: #fafbfc;
    color: #52607a;
    font-size: 11px;
    font-weight: 600;
}

.portal-menu-store-link:hover {
    color: #1d3168;
}

@media (max-width: 575px) {
    .portal-menu .portal-menu-dropdown {
        right: 50%;
        width: min(280px, calc(100vw - 24px));
        min-width: 0;
        transform: translateX(50%);
    }

}
