/* Authentication layout and the product showcase panel. */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 12% 10%, #ededed 0, transparent 38%),
        var(--pos-bg);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 480px);
    grid-template-rows: 1fr auto;
    gap: 24px 56px;
    width: min(100% - 48px, 1120px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 0 24px;
}

.auth-showcase {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 500px;
    margin: auto 0;
    padding: 36px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 90% 10%, #404040 0, transparent 38%),
        linear-gradient(145deg, #262626, #171717 78%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid #ffffff26;
    border-radius: 15px;
    background: #ffffff14;
    color: #e5e5e5;
    font-size: 21px;
}

.auth-brand-name {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.auth-brand-name:hover {
    color: #fff;
}

.auth-brand p {
    color: #bdbdbd;
    font-size: 12px;
    margin: 0;
}

.auth-showcase-copy {
    max-width: 490px;
    height: 500px;
    margin: 48px 0;
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    margin: 0 0 16px;
    color: #d4d4d4;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.8px;
}

.auth-showcase h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.35;
}

.auth-showcase-description {
    max-width: 420px;
    margin: 0;
    color: #d4d4d4;
    font-size: 14px;
    line-height: 1.9;
}

.auth-feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #ffffff24;
    border-radius: 12px;
    background: #ffffff10;
    color: #e5e5e5;
}

.auth-showcase-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #d4d4d4;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.auth-showcase-note i {
    color: #d4d4d4;
}

.auth-main {
    display: flex;
    align-items: center;
    min-width: 0;
}

.auth-card {
    width: 100%;
    padding: 36px;
    border: 1px solid var(--pos-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px #26262612;
}

.auth-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--pos-primary-soft);
    color: var(--pos-primary);
    flex-shrink: 0;
}

.auth-card h1 {
    font-size: 21px;
    margin: 0 0 5px;
}

.auth-card-heading p {
    margin: 0;
    color: var(--pos-muted);
    font-size: 13px;
    line-height: 1.7;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-submit {
    min-height: 46px;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
    border-color: var(--pos-focus);
    box-shadow: var(--pos-focus-ring);
}

.auth-mode-option {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--pos-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.auth-mode-option:has(.form-check-input:checked) {
    border-color: var(--pos-primary);
    background: var(--pos-primary-soft);
}

.auth-mode-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.auth-mode-option strong,
.auth-mode-option small {
    display: block;
}

.auth-mode-option strong {
    font-size: .85rem;
    font-weight: 500;
}

.auth-mode-option small {
    margin-top: 2px;
    color: var(--pos-muted);
    font-size: .72rem;
    line-height: 1.45;
}

.auth-submit {
    --bs-btn-bg: var(--pos-primary);
    --bs-btn-border-color: var(--pos-primary);
    --bs-btn-hover-bg: var(--pos-primary-hover);
    --bs-btn-hover-border-color: var(--pos-primary-hover);
    --bs-btn-active-bg: var(--pos-primary-active);
    --bs-btn-active-border-color: var(--pos-primary-active);
    --bs-btn-focus-shadow-rgb: 163, 163, 163;
}

.auth-switch {
    border-top: 1px solid var(--pos-border);
    margin: 24px 0 0;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--pos-muted);
    line-height: 1.9;
}

.auth-switch a {
    color: var(--pos-primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-footer {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--pos-muted);
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr auto;
        gap: 16px;
        width: min(100% - 32px, 520px);
        padding: 16px 0;
    }

    .auth-showcase {
        min-height: 0;
        padding: 22px;
        border-radius: 20px;
        display: none;
    }

    .auth-showcase-copy {
        margin: 28px 0 22px;
    }

    .auth-eyebrow {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .auth-showcase h2 {
        margin-bottom: 10px;
        font-size: 29px;
    }

    .auth-showcase-description {
        font-size: 12px;
    }

    .auth-feature-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .auth-showcase-note {
        font-size: 11px;
    }

    .auth-main {
        align-items: flex-start;
    }

    .auth-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .auth-card h1 {
        font-size: 19px;
    }

    .auth-footer {
        padding: 4px 0;
    }
}
