/* WMS client portal auth pages */

.authentication-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.authentication-cover .authentication-inner {
    flex: 1;
    width: 100%;
    min-height: 0;
}

.auth-top-bar {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
    pointer-events: none;
}

.auth-top-bar > * {
    pointer-events: auto;
}

.auth-top-logo {
    max-height: 4.5rem;
    width: auto;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .auth-top-bar {
        inset-inline-end: 58.333333%;
        justify-content: flex-end;
    }

    .auth-top-bar .auth-lang-switch {
        position: static;
    }

    .auth-top-bar .auth-top-logo {
        display: none;
    }
}

/* Language switcher */
.auth-lang-switch {
    position: absolute;
    top: 1.25rem;
    inset-inline-end: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(var(--bs-body-color-rgb), 0.04);
    border: 1px solid var(--bs-border-color);
    z-index: 5;
}

.auth-lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.875rem;
    padding: 0 0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    color: var(--bs-secondary-color);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.auth-lang-switch__btn:hover {
    color: var(--bs-primary);
}

.auth-lang-switch__btn.is-active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.authentication-cover .auth-cover-bg {
    position: relative;
    overflow: hidden;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.1) 0%, rgba(var(--bs-info-rgb), 0.05) 45%, rgba(var(--bs-body-bg-rgb, 255, 255, 255), 0.92) 100%);
}

.auth-cover-brand {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.75rem;
    z-index: 2;
}

.auth-cover-logo {
    display: block;
    max-height: 4rem;
    width: auto;
    max-width: 11rem;
}

.auth-cover-body {
    width: 100%;
    min-width: 0;
}

.auth-cover-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: min(100%, 46rem);
}

.auth-cover-eyebrow {
    display: inline-block;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
}

.auth-cover-title {
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-heading-color);
    margin-bottom: 0;
}

.auth-cover-subtitle {
    font-size: 1.0625rem;
    line-height: 1.55;
    max-width: 40rem;
    margin-inline: auto;
}

.auth-cover-content .brand-logo {
    max-height: 10rem;
    width: auto;
}

/* Cover decorative shapes */
.auth-cover-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-cover-shape--1 {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    inset-inline-start: -6rem;
    background: radial-gradient(circle at center, rgba(var(--bs-primary-rgb), 0.25), transparent 70%);
}

.auth-cover-shape--2 {
    width: 26rem;
    height: 26rem;
    bottom: -8rem;
    inset-inline-end: -8rem;
    background: radial-gradient(circle at center, rgba(var(--bs-info-rgb), 0.22), transparent 70%);
}

.auth-cover-shape--3 {
    width: 14rem;
    height: 14rem;
    top: 42%;
    inset-inline-end: 12%;
    background: radial-gradient(circle at center, rgba(var(--bs-success-rgb), 0.14), transparent 72%);
}

.auth-cover-features__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(var(--bs-white-rgb, 255, 255, 255), 0.72);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    box-shadow: 0 0.35rem 1.25rem rgba(var(--bs-primary-rgb), 0.06);
    font-weight: 500;
    color: var(--bs-heading-color);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.auth-cover-features__item:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--bs-primary-rgb), 0.22);
    box-shadow: 0 0.5rem 1.5rem rgba(var(--bs-primary-rgb), 0.1);
}

.auth-cover-features__item:last-child {
    margin-bottom: 0;
}

.auth-cover-features__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.82));
    color: var(--bs-white);
}

.auth-cover-features__icon svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 2.25;
}

.auth-cover-features__text {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.45;
    font-weight: 600;
    min-width: 0;
}

@media (min-width: 992px) {
    .auth-cover-features__item {
        padding-inline: 1.25rem;
    }

    .auth-cover-features__text {
        white-space: nowrap;
    }
}

.auth-cover-feature-card__body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Cover feature list */
.auth-cover-features {
    width: 100%;
}

.auth-form-footer a {
    text-decoration: none;
}

.letter-spacing {
    letter-spacing: 0.35em;
}

.form-password-toggle .cursor-pointer {
    cursor: pointer;
}

.auth-field-meta {
    font-size: 0.8125rem;
    line-height: 1.4;
}

.auth-form-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

/* Form column */


.auth-form-card {
    width: 100%;
}

.auth-form-card__inner {
    margin-bottom: 1.5rem;
}

.auth-form-card__footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--bs-border-color);
}

.auth-form-card__logo {
    max-height: 10rem;
    width: auto;
}

.auth-heading {
    font-weight: 600;
}

/* Auth alerts — icon left, message beside (matches dashboard-notice) */
.auth-form-card .auth-form-alert.dashboard-notice {
    flex-direction: row;
    align-items: flex-start;
    text-align: start;
    gap: 0.75rem;
}

.auth-form-card .auth-form-alert.dashboard-notice .dashboard-notice__content,
.auth-form-card .auth-form-alert.dashboard-notice .dashboard-notice__body {
    text-align: start;
    color: var(--body-color, #6e6b7b);
}

.auth-form-card .auth-form-alert.dashboard-notice .dashboard-notice__icon {
    flex-shrink: 0;
}

/* Unified validation tone — match dashboard-notice danger palette */
.auth-form-card .input-group-merge.is-invalid,
.auth-form-card .form-control.is-invalid,
.auth-form-card .form-control.error,
.auth-form-card input.error {
    border-color: color-mix(in srgb, var(--danger) 45%, var(--bs-border-color, #d8d6de)) !important;
    box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--danger) 14%, transparent);
}

.auth-form-card .input-group-merge.is-invalid .form-control,
.auth-form-card .input-group-merge.is-invalid .input-group-text,
.auth-form-card .form-control.is-invalid,
.auth-form-card .form-control.error,
.auth-form-card input.error {
    border-color: color-mix(in srgb, var(--danger) 45%, var(--bs-border-color, #d8d6de)) !important;
}

.auth-form-card .input-group-merge.is-invalid .input-group-text {
    color: var(--danger);
}

.auth-form-card .auth-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--wms-form-invalid-color, var(--danger, #ea5455));
}

.auth-icon-badge {
    width: 3.25rem;
    height: 3.25rem;
}

.auth-icon-badge .avatar-content .ti {
    font-size: 1.5rem;
}

/* Leading icon inside merged input groups */
.input-group-merge .input-group-text {
    color: var(--bs-secondary-color);
}

/* Validation feedback */
.input-group-merge.is-invalid {
    border-radius: var(--bs-border-radius);
}
