.auth-portal-buttons {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    position: relative;
}

.auth-portal-buttons.align-left { justify-content: flex-start; }
.auth-portal-buttons.align-center { justify-content: center; }
.auth-portal-buttons.align-right { justify-content: flex-end; }

.auth-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.auth-portal-btn-primary {
    background: #477ef9;
    color: #fff;
    border: 1px solid #477ef9;
    box-shadow: 0 10px 30px rgba(71, 126, 249, 0.25);
}

.auth-portal-btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-portal-inline {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Modern Burger Menu Toggle */
.auth-portal-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: none;
    flex-direction: column;
    gap: 0;
}

.auth-portal-toggle:hover,
.auth-portal-toggle:focus,
.auth-portal-toggle:active {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: none;
}

/* Hamburger Icon */
.auth-portal-toggle-icon {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-portal-toggle-bar {
    width: 100%;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

/* Animate to X when open */
.auth-portal-buttons.open .auth-portal-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.auth-portal-buttons.open .auth-portal-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.auth-portal-buttons.open .auth-portal-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.auth-portal-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modern Dropdown Menu */
.auth-portal-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-portal-buttons.open .auth-portal-menu {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Menu Header */
.auth-portal-menu-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}

.auth-portal-menu-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin: 0;
}

/* Menu Items */
.auth-portal-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.auth-portal-menu-item:last-child {
    margin-bottom: 0;
}

.auth-portal-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.auth-portal-menu-item:active {
    background: #e2e8f0;
}

/* Menu Item Icons */
.auth-portal-menu-icon {
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.auth-portal-menu-item:hover .auth-portal-menu-icon {
    color: #1e293b;
}

/* Menu Divider */
.auth-portal-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

/* Primary Button in Menu */
.auth-portal-menu-item.primary {
    background: #477ef9;
    color: #fff;
}

.auth-portal-menu-item.primary:hover {
    background: #3f71df;
    color: #fff;
}

.auth-portal-menu-item.primary .auth-portal-menu-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Menu Arrow/Caret */
.auth-portal-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transform: rotate(45deg);
    z-index: -1;
}

/* User Info in Menu (optional) */
.auth-portal-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}

.auth-portal-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f6f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 36px;
    flex-shrink: 0;
}

.auth-portal-menu-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.auth-portal-menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.auth-portal-menu-user-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-portal-menu-user-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-portal-form {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    width: 100%;
    --auth-portal-form-bg: #fff;
    box-sizing: border-box;
}

.auth-portal-form--login,
.auth-portal-form--register {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    --auth-portal-form-bg: transparent;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Archivo', sans-serif;
}

.auth-portal-form--login,
.auth-portal-form--register {
    --auth-portal-entry-width: 298px;
    width: 100%;
    max-width: var(--auth-portal-entry-width);
    min-width: 0;
    min-height: 486px;
}

.auth-portal-form--verify {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    --auth-portal-form-bg: transparent;
    width: 382px;
    max-width: 382px;
    min-width: 382px;
    min-height: 486px;
    margin-left: auto;
    margin-right: auto;
}

.auth-portal-form--reset {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    --auth-portal-form-bg: transparent;
    --auth-portal-entry-width: 298px;
    width: 100%;
    max-width: var(--auth-portal-entry-width);
    min-width: 0;
    min-height: 486px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Archivo', sans-serif;
}



/* ── Login header ── */
.auth-portal-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.auth-portal-form--login .auth-portal-step .auth-portal-login-header,
.auth-portal-form--register .auth-portal-step .auth-portal-login-header,
.auth-portal-form--verify .auth-portal-login-header,
.auth-portal-form--reset .auth-portal-login-header {
    min-height: 111px;
}

.auth-portal-login-title {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    margin-top: 43px;
    line-height: 1.2;
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-height: 0;
}

.auth-portal-login-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #838383;
    margin-top: 16px;
}

/* ── Email shown below title (password step) ── */
.auth-portal-login-email {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    color: #838383;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-height: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
}

.auth-portal-form--login .auth-portal-step--email .auth-portal-login-email,
.auth-portal-form--register .auth-portal-step--email .auth-portal-login-email {
    display: none;
}

.auth-portal-form--login .auth-portal-step--password .auth-portal-login-email,
.auth-portal-form--register .auth-portal-step--password .auth-portal-login-email {
    font-size: 14px;
    margin-top: 16px;
}

.auth-portal-login-email--visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-portal-form--login.has-email .auth-portal-login-email,
.auth-portal-form--register.has-email .auth-portal-login-email {
    opacity: 1;
    transform: translateY(0);
}

.auth-portal-form--login.is-switching .auth-portal-login-title,
.auth-portal-form--login.is-switching .auth-portal-login-email,
.auth-portal-form--register.is-switching .auth-portal-login-title,
.auth-portal-form--register.is-switching .auth-portal-login-email {
    opacity: 0;
    transform: translateY(-6px);
}

/* ── Email field ── */
.auth-portal-form--login .auth-portal-field,
.auth-portal-form--register .auth-portal-field {
    margin-bottom: 0;
    margin-top: 20px;
}

.auth-portal-form--register .auth-portal-step--password .auth-portal-field + .auth-portal-field {
    margin-top: 11px;
}

.auth-portal-form--reset .auth-portal-field {
    margin-top: 11px;
    margin-bottom: 0;
}

.auth-portal-form--reset .auth-portal-login-header + .auth-portal-field,
.auth-portal-form--reset .auth-portal-messages + .auth-portal-field {
    margin-top: 20px;
}

.auth-portal-form--login .auth-portal-step .auth-portal-field,
.auth-portal-form--login .auth-portal-step .auth-portal-floating,
.auth-portal-form--login .auth-portal-step .auth-portal-actions,
.auth-portal-form--login .auth-portal-step--email .auth-portal-social-buttons,
.auth-portal-form--register .auth-portal-step--email .auth-portal-field,
.auth-portal-form--register .auth-portal-step--email .auth-portal-floating,
.auth-portal-form--register .auth-portal-step--email .auth-portal-actions,
.auth-portal-form--register .auth-portal-step--email .auth-portal-social-buttons,
.auth-portal-form--register .auth-portal-step--password .auth-portal-field,
.auth-portal-form--register .auth-portal-step--password .auth-portal-floating,
.auth-portal-form--register .auth-portal-step--password .auth-portal-actions,
.auth-portal-form--reset .auth-portal-field,
.auth-portal-form--reset .auth-portal-floating,
.auth-portal-form--reset .auth-portal-actions {
    width: 100%;
    max-width: var(--auth-portal-entry-width, 382px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

.auth-portal-form--login .auth-portal-field input,
.auth-portal-form--register .auth-portal-field input,
.auth-portal-form--reset .auth-portal-field input {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #111827;
    background: #F6F7F5;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    height: 47px;
    padding: 0 14px 0 20px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.auth-portal-form--login .auth-portal-field input::placeholder,
.auth-portal-form--register .auth-portal-field input::placeholder,
.auth-portal-form--reset .auth-portal-field input::placeholder {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af;
}

.auth-portal-form--login .auth-portal-field input:focus,
.auth-portal-form--register .auth-portal-field input:focus,
.auth-portal-form--reset .auth-portal-field input:focus {
    outline: none;
    box-shadow: none;
    border-color: #477EF9;
}

/* ── Continue / Submit button ── */
.auth-portal-form--login .auth-portal-actions,
.auth-portal-form--register .auth-portal-actions,
.auth-portal-form--reset .auth-portal-actions {
    margin-top: 11px;
}

.auth-portal-form--login .auth-portal-actions button,
.auth-portal-form--register .auth-portal-actions button,
.auth-portal-form--reset .auth-portal-actions button,
.auth-portal-btn-form-link {
    width: 100%;
    height: 47px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 0 !important;
    background: #477EF9 !important;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: none;
    box-shadow: none !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-portal-form--login .auth-portal-step .auth-portal-field input,
.auth-portal-form--login .auth-portal-step .auth-portal-actions button,
.auth-portal-form--login .auth-portal-step--email .auth-portal-social-btn,
.auth-portal-form--register .auth-portal-step--email .auth-portal-field input,
.auth-portal-form--register .auth-portal-step--email .auth-portal-actions button,
.auth-portal-form--register .auth-portal-step--email .auth-portal-social-btn,
.auth-portal-form--register .auth-portal-step--password .auth-portal-field input,
.auth-portal-form--register .auth-portal-step--password .auth-portal-actions button,
.auth-portal-form--reset .auth-portal-field input,
.auth-portal-form--reset .auth-portal-actions button,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link {
    width: 100%;
    max-width: var(--auth-portal-entry-width, 382px);
    min-width: 0;
}

.auth-portal-form--login .auth-portal-actions button:hover,
.auth-portal-form--login .auth-portal-actions button:focus,
.auth-portal-form--login .auth-portal-actions button:active,
.auth-portal-form--register .auth-portal-actions button:hover,
.auth-portal-form--register .auth-portal-actions button:focus,
.auth-portal-form--register .auth-portal-actions button:active,
.auth-portal-form--reset .auth-portal-actions button:hover,
.auth-portal-form--reset .auth-portal-actions button:focus,
.auth-portal-form--reset .auth-portal-actions button:active,
.auth-portal-btn-form-link:hover,
.auth-portal-btn-form-link:focus,
.auth-portal-btn-form-link:active {
    background: #477EF9 !important;
    color: #fff;
    transform: none;
    box-shadow: none !important;
}

.auth-portal-form--login .auth-portal-actions button:disabled,
.auth-portal-form--register .auth-portal-actions button:disabled,
.auth-portal-form--reset .auth-portal-actions button:disabled {
    cursor: not-allowed;
    opacity: 1;
    background: #477EF9 !important;
    box-shadow: none !important;
    transform: none;
}

.auth-portal-step-back {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 17px auto 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #000000;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    box-shadow: none !important;
}

.auth-portal-step-back:hover,
.auth-portal-step-back:focus,
.auth-portal-step-back:active {
    background: transparent !important;
    color: #000000;
    text-decoration: none;
    transform: none;
    box-shadow: none !important;
}

/* ── "or" divider ── */
.auth-portal-login-divider {
    text-align: center;
    margin-top: 17px;
}

.auth-portal-login-divider span {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
}

/* ── Social buttons ── */
.auth-portal-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 21px;
}

.auth-portal-social-btn {
    display: grid;
    grid-template-columns: 20px 14px 140px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 47px;
    padding: 0 16px;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px;
    cursor: pointer;
    transition: none;
    box-shadow: none !important;
    box-sizing: border-box;
    text-decoration: none;
}

.auth-portal-social-btn:hover,
.auth-portal-social-btn:focus,
.auth-portal-social-btn:active {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    transform: none;
    box-shadow: none !important;
}

.auth-portal-social-btn span {
    grid-column: 3;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #676B5F;
    text-align: left;
    white-space: nowrap;
}

.auth-portal-social-icon {
    display: block;
    grid-column: 1;
    justify-self: center;
    flex-shrink: 0;
    margin-right: 0;
    color: #000000;
}

.auth-portal-social-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-portal-social-consent {
    margin: -2px 8px 2px;
    color: #8A8E83;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
}

.auth-portal-social-consent a,
.auth-portal-social-consent a:hover,
.auth-portal-social-consent a:focus {
    color: inherit;
    text-decoration: underline;
}

/* ── Forgot password ── */
.auth-portal-login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px;
}

.auth-portal-form--register .auth-portal-step--email .auth-portal-login-footer {
    margin-top: 45px;
}

.auth-portal-form--register .auth-portal-step--email .auth-portal-form-switch-meta {
    margin-top: 0;
}

.auth-portal-forgot-link {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #477EF9;
    text-decoration: none;
    cursor: pointer;
}

.auth-portal-forgot-link:hover,
.auth-portal-forgot-link:focus {
    color: #477EF9;
    text-decoration: none;
}

/* ── Don't have an account? Sign Up ── */
.auth-portal-form-switch-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
}

.auth-portal-switch-prompt {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #676B5F;
}

.auth-portal-switch-link {
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    color: #477EF9;
    text-decoration: none;
}

.auth-portal-switch-link:hover,
.auth-portal-switch-link:focus {
    color: #477EF9;
    text-decoration: none;
}



.auth-portal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-portal-field input {
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    width: 100%;
    background: var(--auth-portal-form-bg);
    color: #111827;
}

.auth-portal-field input:focus {
    outline: none;
    box-shadow: none;
}



.auth-portal-floating {
    position: relative;
}

.auth-portal-floating label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b7280;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
    transition: all 0.25s ease;
    background: var(--auth-portal-form-bg);
    padding: 0 6px;
}

.auth-portal-floating input:focus + label,
.auth-portal-floating input:not(:placeholder-shown) + label {
    top: 6px;
    transform: none;
    font-size: 11px;
    color: #6b7280;
}


.auth-portal-label-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.auth-portal-step {
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.auth-portal-step.is-active {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-portal-password-rules {
    margin: 2px 0 12px;
    font-size: 12px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.auth-portal-password-rules.is-valid {
    color: #16a34a;
}

.auth-portal-consent {
    margin-bottom: 14px;
}

.auth-portal-consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: #9ca3af;
}

.auth-portal-consent-label input[type="checkbox"] {
    margin-top: 2px;
}

.auth-portal-consent-label a {
    color: #60a5fa;
    text-decoration: underline;
}

.auth-portal-verify-panel {
    width: 382px;
    min-height: 104px;
    box-sizing: border-box;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 18px;
    margin: 20px 0 34px;
    background: #F6F7F5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-portal-verification-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.auth-portal-verification-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.auth-portal-verification-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    font-size: 12px;
    flex: 0 0 22px;
}

.auth-portal-verification-step-icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.auth-portal-verification-steps li.is-current,
.auth-portal-verification-steps li.is-complete {
    color: #111827;
}

.auth-portal-verification-steps li.is-current .auth-portal-verification-step-icon {
    border-color: #477EF9;
    color: #477EF9;
}

.auth-portal-verification-steps li.is-complete .auth-portal-verification-step-icon {
    border-color: transparent;
}

.auth-portal-verify-panel--id_details {
    padding-top: 18px;
    padding-bottom: 18px;
}

.auth-portal-id-intro h3 {
    margin: 0 0 8px;
    font: 500 16px/1.2 'Archivo', sans-serif;
    color: #111827;
}

.auth-portal-id-intro p {
    margin: 0;
    font: 400 13px/1.45 'Archivo', sans-serif;
    color: #676B5F;
}

.auth-portal-form--verify .auth-portal-field {
    width: 100%;
    margin-top: 11px;
}

.auth-portal-form--verify .auth-portal-field input {
    width: 100%;
    height: 47px;
    box-sizing: border-box;
    padding: 0 14px 0 20px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: 400 14px 'Archivo', sans-serif;
}

.auth-portal-form--verify .auth-portal-field input:focus {
    outline: none;
    border-color: #477EF9;
}

.auth-portal-form--verify.is-switching .auth-portal-verify-panel {
    opacity: 0.68;
    transform: translateY(-2px);
}

.auth-portal-verify-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    min-height: 72px;
}

.auth-portal-verify-row--id {
    justify-content: center;
}

.auth-portal-verify-text {
    margin: 0;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #676B5F;
    line-height: 1.2;
    max-width: 292px;
    text-align: left;
}

.auth-portal-verify-text-pending.is-hidden,
.auth-portal-verify-text-verified.is-hidden {
    display: none;
}

.auth-portal-inline-refresh {
    display: inline;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #477EF9;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    box-shadow: none !important;
}

.auth-portal-inline-refresh:hover,
.auth-portal-inline-refresh:focus,
.auth-portal-inline-refresh:active {
    background: transparent !important;
    color: #477EF9;
    text-decoration: none;
    transform: none;
    box-shadow: none !important;
}

.auth-portal-verify-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    margin: 0;
}

.auth-portal-verify-status--pending,
.auth-portal-verify-status--not_found,
.auth-portal-verify-status--unknown {
    color: #fbbf24;
}

.auth-portal-verify-status--pending {
    background: transparent;
    padding: 0;
}

.auth-portal-verify-status--verified {
    background: transparent;
    color: #4ade80;
    padding: 0;
}

.auth-portal-verify-status--unsubscribed {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    padding: 6px 12px;
}

.auth-portal-verify-status--not_found,
.auth-portal-verify-status--unknown {
    background: rgba(245, 158, 11, 0.16);
    padding: 6px 12px;
}

.auth-portal-verify-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(148, 163, 184, 0.35);
    border-top-color: #60a5fa;
    animation: authPortalSpin 0.9s linear infinite;
}

.auth-portal-verify-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 24px;
    height: 34px;
}

.auth-portal-verify-loader span {
    display: block;
    width: 5px;
    height: 20px;
    border-radius: 10px;
    background: #D9D9D9;
    animation: authPortalVerifyBars 1.2s ease-in-out infinite;
}

.auth-portal-verify-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.auth-portal-verify-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

.auth-portal-verify-check {
    width: 18px;
    height: 18px;
    display: inline-block;
    object-fit: contain;
    flex: 0 0 18px;
}

.auth-portal-verify-messages {
    display: grid;
    gap: 4px;
}

.auth-portal-verify-messages.is-empty {
    display: none;
}

.auth-portal-verify-messages:not(.is-empty) {
    margin-top: 8px;
}

.auth-portal-verify-messages .auth-portal-message {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #9ca3af;
}

.auth-portal-verify-messages .auth-portal-message--error {
    color: #ef4444;
}

.auth-portal-verify-actions {
    display: grid;
    gap: 11px;
    width: 382px;
    max-width: 382px;
    min-width: 382px;
}

.auth-portal-verify-action-set {
    display: grid;
    gap: 11px;
    width: 382px;
    max-width: 382px;
    min-width: 382px;
}

.auth-portal-verify-action-set.is-hidden,
.auth-portal-verify-change-copy.is-hidden,
.auth-portal-verify-sep.is-hidden {
    display: none !important;
}

.auth-portal-btn-secondary {
    background: #FFFFFF !important;
    color: #676B5F !important;
    border: 1px solid #E2E8F0 !important;
}

.auth-portal-btn-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
}

.auth-portal-verify-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    width: 100%;
    text-align: center;
    flex-wrap: wrap;
}

.auth-portal-verify-sep {
    color: #64748b;
}

.auth-portal-verify-change-copy {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-portal-inline-link-anchor {
    color: #9ca3af;
    text-decoration: none;
    cursor: pointer;
}

.auth-portal-inline-link-anchor:hover,
.auth-portal-inline-link-anchor:focus,
.auth-portal-btn-link:hover,
.auth-portal-btn-link:focus {
    color: #9ca3af;
}

.auth-portal-remember {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
}

.auth-portal-actions button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 0;
    background: #477ef9;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: none;
}

.auth-portal-actions button:hover,
.auth-portal-actions button:focus,
.auth-portal-actions button:active {
    background: #477ef9;
    color: #fff;
    transform: none;
}

.auth-portal-actions button:disabled {
    cursor: not-allowed;
    opacity: 1;
    background: #477ef9;
    box-shadow: none;
    transform: none;
}

.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary),
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary),
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary),
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary),
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link {
    background: #477ef9 !important;
}

.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled),
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled),
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled),
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled),
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link {
    opacity: 1;
    background: #477ef9 !important;
    box-shadow: none;
    transform: none;
}

.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):hover,
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):focus,
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):active,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):hover,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):focus,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):active,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):hover,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):focus,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):active,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):hover,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):focus,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary):not(:disabled):active,
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:hover,
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:focus,
.auth-portal-form--login .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:active,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:hover,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:focus,
.auth-portal-form--register .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:active,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:hover,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:focus,
.auth-portal-form--verify .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:active,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:hover,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:focus,
.auth-portal-form--reset .auth-portal-actions button:not(.auth-portal-btn-secondary).is-ready:active,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link:hover,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link:focus,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link:active {
    background: #477ef9 !important;
    box-shadow: none;
    transform: none;
}

.auth-portal-form--verify .auth-portal-actions button,
.auth-portal-form--reset .auth-portal-actions button,
.auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link {
    width: 100%;
    max-width: var(--auth-portal-entry-width, 382px);
    min-width: 0;
    height: 47px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none !important;
}

.auth-portal-form--verify .auth-portal-actions .auth-portal-btn-secondary {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #676B5F !important;
}

.auth-portal-resend-wait {
    display: none;
    margin-top: 2px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #676B5F;
    text-align: center;
}

.auth-portal-resend-wait.is-visible {
    display: block;
}

.auth-portal-messages {
    margin-bottom: 16px;
    display: grid;
    gap: 8px;
}

.auth-portal-message {
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.auth-portal-message--error { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.auth-portal-message--info { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.auth-portal-message--success { background: rgba(22, 163, 74, 0.12); color: #15803d; }

/* Responsive - Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    .auth-portal-buttons {
        gap: 8px;
    }

    .auth-portal-btn {
        padding: 0.65rem 1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .auth-portal-form--login,
    .auth-portal-form--register,
    .auth-portal-form--verify,
    .auth-portal-form--reset {
        width: 100%;
        max-width: var(--auth-portal-entry-width, 382px);
        min-width: 0;
    }

    .auth-portal-login-email {
        max-width: 100%;
    }

    .auth-portal-form--login .auth-portal-step .auth-portal-field,
    .auth-portal-form--login .auth-portal-step .auth-portal-floating,
    .auth-portal-form--login .auth-portal-step .auth-portal-actions,
    .auth-portal-form--login .auth-portal-step--email .auth-portal-social-buttons,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-field,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-floating,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-actions,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-social-buttons,
    .auth-portal-form--register .auth-portal-step--password .auth-portal-field,
    .auth-portal-form--register .auth-portal-step--password .auth-portal-floating,
    .auth-portal-form--register .auth-portal-step--password .auth-portal-actions,
    .auth-portal-form--reset .auth-portal-field,
    .auth-portal-form--reset .auth-portal-floating,
    .auth-portal-form--reset .auth-portal-actions,
    .auth-portal-form--login .auth-portal-step .auth-portal-field input,
    .auth-portal-form--login .auth-portal-step .auth-portal-actions button,
    .auth-portal-form--login .auth-portal-step--email .auth-portal-social-btn,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-field input,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-actions button,
    .auth-portal-form--register .auth-portal-step--email .auth-portal-social-btn,
    .auth-portal-form--register .auth-portal-step--password .auth-portal-field input,
    .auth-portal-form--register .auth-portal-step--password .auth-portal-actions button,
    .auth-portal-form--reset .auth-portal-field input,
    .auth-portal-form--reset .auth-portal-actions button,
    .auth-portal-form--reset .auth-portal-actions .auth-portal-btn-form-link,
    .auth-portal-verify-panel,
    .auth-portal-verify-actions,
    .auth-portal-verify-action-set,
    .auth-portal-form--verify .auth-portal-actions button {
        width: 100%;
        max-width: var(--auth-portal-entry-width, 382px);
        min-width: 0;
    }

    .auth-portal-form-switch-meta {
        flex-wrap: wrap;
        text-align: center;
    }

    .auth-portal-verify-text {
        min-width: 0;
    }

    .elementor-widget-auth_portal_buttons {
        align-self: center;
        line-height: 0;
        position: static;
        z-index: 1001;
        margin-left: auto;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: auto !important;
        height: auto !important;
        min-height: 0;
    }

    .elementor-widget-auth_portal_buttons .elementor-widget-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 0;
    }

    .auth-portal-inline {
        display: none;
    }

    .auth-portal-buttons {
        width: auto;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        line-height: 0;
        min-height: 0;
        vertical-align: middle;
    }

    .auth-portal-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        margin: 0;
        background: transparent !important;
        border-color: transparent !important;
        border-radius: 0;
        box-shadow: none !important;
    }

    .auth-portal-menu {
        position: fixed;
        top: var(--auth-portal-mobile-menu-top, 72px);
        bottom: auto;
        left: 0;
        right: 0;
        min-width: 0;
        width: auto;
        max-height: calc(100dvh - var(--auth-portal-mobile-menu-top, 72px));
        overflow-y: auto;
        border-radius: 0;
        padding: 18px 24px 24px;
        transform: translateY(-8px);
        transform-origin: top center;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .auth-portal-buttons.open .auth-portal-menu {
        transform: translateY(0);
    }

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

    .auth-portal-menu-handle {
        display: none;
    }

    .auth-portal-menu.dragging {
        transition: none;
    }

    .auth-portal-menu-item {
        padding: 14px 16px;
        font-size: 15px;
    }

    .auth-portal-buttons.open::before {
        display: none;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authPortalSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes authPortalVerifyBars {
    0%, 100% { height: 20px; }
    33% { height: 34px; }
    66% { height: 20px; }
}

/* Global scroll lock when auth menu is open */
.auth-portal-locked {
    overflow: hidden;
    height: 100%;
    touch-action: none;
    overscroll-behavior: contain;
}
