/**
 * App sign-in page — layout helpers (theme colors in auth-theme.css).
 */

.app-auth-shell .portal-auth-main__inner {
    max-width: 440px;
}

.app-auth-shell .portal-auth-main__scroll {
    justify-content: center;
    padding: 1.25rem 0;
}

@media (max-width: 991.98px) {
    .app-auth-shell .portal-auth-main__scroll {
        justify-content: flex-start;
        padding: 0.75rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    }

    .app-auth-shell .portal-auth-main__inner,
    .app-auth-shell .portal-auth-footer {
        max-width: 100%;
        width: 100%;
    }

    .app-auth-form-meta {
        align-items: flex-start;
    }

    .app-auth-forgot {
        margin-left: auto;
    }

    .portal-auth-brand-mobile,
    .app-auth-brand-mobile {
        justify-content: center;
        width: 100%;
    }
}

.app-auth-shell .portal-auth-footer {
    max-width: 440px;
    padding-top: 0.75rem;
}

.app-auth-shell .portal-auth-header,
.app-auth-shell .app-auth-brand-desktop {
    text-align: center;
}

.app-auth-shell .app-auth-brand-desktop .track-auth-logo {
    margin-left: auto;
    margin-right: auto;
}

.app-auth-promo__brand {
    gap: 0;
}

.app-auth-password-wrap {
    position: relative;
}

.app-auth-password-wrap .portal-auth-input {
    padding-right: 2.75rem;
}

.app-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    line-height: 1;
}

.app-auth-password-toggle:hover {
    color: var(--track-auth-green, #04966a);
}

.app-auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0.15rem 0 0.35rem;
}

.app-auth-remember .form-check-label {
    font-size: 13px;
    color: #475569;
}

.app-auth-remember .form-check-input:checked {
    background-color: var(--track-auth-green, #04966a);
    border-color: var(--track-auth-green, #04966a);
}

.app-auth-forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--track-auth-green, #04966a);
    text-decoration: none;
}

.app-auth-forgot:hover {
    text-decoration: underline;
}

.app-auth-demo-card {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #a7f3d0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f0fdf9 0%, #fff 100%);
}

.app-auth-demo-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.app-auth-demo-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.app-auth-demo-card__list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
}

.app-auth-demo-card__list div {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
}

.app-auth-demo-card__list dt {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.app-auth-demo-card__list dd {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    word-break: break-all;
}

.app-auth-demo-card__hint {
    font-size: 12px;
    line-height: 1.5;
}

.app-auth-demo-more {
    margin-top: 0.75rem;
}

.app-auth-demo-more summary {
    font-size: 12px;
    font-weight: 600;
    color: var(--track-auth-green, #04966a);
    cursor: pointer;
    user-select: none;
}

.app-auth-demo-more__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.app-auth-tenant-note {
    font-size: 12px;
    line-height: 1.5;
}

.app-auth-version {
    font-size: 11px;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

.app-auth-footer {
    gap: 0.45rem 0.65rem;
}

.app-auth-footer__locale .dropdown-toggle {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: none;
}

.app-auth-footer__locale .dropdown-toggle:hover {
    color: var(--track-auth-green, #04966a);
}

.app-auth-forgot-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.app-auth-security-notice {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.app-auth-security-notice__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.65rem;
}

.app-auth-security-notice__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.app-auth-security-notice__list li {
    position: relative;
    padding-left: 1rem;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.app-auth-security-notice__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--track-auth-green, #04966a);
}

/* Mobile: match desktop header logo sizing on POS sign-in. */
@media (max-width: 991.98px) {
    .app-auth-shell .portal-auth-header {
        margin-bottom: 1.25rem;
    }
}

.portal-auth-modal {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.tenant-select-list {
    display: grid;
    gap: 0.65rem;
}

#tenantSelectInput {
    min-height: 10rem;
}

#tenantSelectInput option {
    padding: 0.55rem 0.75rem;
}

#tenantSelectInput option.tenant-select-option-expired {
    color: #94a3b8;
    font-style: italic;
}

.portal-auth-modal .modal-footer {
    gap: 0.5rem;
}