/* Ecocys POS login — premium product login (isolated from internal POS) */

.pos-auth-page {
    --brand: #004CC0;
    --brand-hover: #003DA3;
    --brand-deep: #002B70;
    --brand-soft: #EAF2FF;
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --ink: #111827;
    --muted: #64748B;
    --line: #E2E8F0;
    --radius: 12px;
    --input-h: 56px;
    min-height: 100vh;
    margin: 0;
    background: var(--surface);
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pos-auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ===== Left showcase panel ===== */
.pos-auth-stage {
    flex: 0 0 54%;
    max-width: 54%;
    background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface-alt) 42%, var(--surface) 100%);
    color: var(--ink);
    overflow: hidden;
    border-right: 1px solid var(--line);
}

.pos-auth-showcase {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.pos-auth-showcase-top {
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.pos-auth-showcase-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 1.35rem;
}
.pos-auth-showcase-logo-text { text-transform: lowercase; color: var(--brand); }
.pos-auth-showcase-logo-divider { color: var(--line); font-weight: 400; }
.pos-auth-showcase-logo-product {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--brand-deep);
}
.pos-auth-showcase-logo-img { width: 32px; height: 32px; object-fit: contain; }

.pos-auth-showcase-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
}
.pos-auth-showcase-title-line { display: block; }
.pos-auth-showcase-title-line--deep { color: var(--brand-deep); }
.pos-auth-showcase-title-line--brand { color: var(--brand); }

.pos-auth-showcase-sub {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    font-weight: 500;
}

.pos-auth-showcase-visual {
    flex: 1 1 72%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 0.25rem 0 0.5rem;
}
.pos-auth-showcase-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(68vh, 580px);
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    box-shadow:
        0 2px 4px rgba(0, 43, 112, 0.03),
        0 16px 40px rgba(0, 43, 112, 0.11);
    border: 1px solid rgba(0, 76, 192, 0.07);
}

/* Benefit strip */
.pos-auth-benefits {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.pos-auth-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}
.pos-auth-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
}
.pos-auth-benefit strong {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--brand-deep);
    line-height: 1.3;
    margin-bottom: 0.1rem;
}
.pos-auth-benefit span:last-child {
    display: block;
    font-size: 0.6875rem;
    color: var(--muted);
    line-height: 1.35;
}

/* ===== Right login panel ===== */
.pos-auth-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}
.pos-auth-top {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    min-height: 56px;
}
.pos-auth-top-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}
.pos-auth-top-mark-img { width: 30px; height: 30px; }
.pos-auth-top-mark strong {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--brand-deep);
}
.pos-auth-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}

.pos-auth-page .auth-sheet-panel--pos {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0;
}

.pos-auth-page .auth-sheet-panel--pos .auth-sheet-head {
    margin-bottom: 1.75rem;
    text-align: left;
}
.pos-auth-page .auth-sheet-panel--pos .auth-sheet-eyebrow {
    color: var(--brand);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}
.pos-auth-page .auth-sheet-panel--pos .auth-sheet-title {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
}
.pos-auth-page .auth-sheet-lede {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0.5rem 0 0;
    font-weight: 400;
}

/* Segmented control */
.pos-auth-page .auth-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}
.pos-auth-page .auth-seg-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 3px);
    transition: background 0.2s, color 0.2s;
}
.pos-auth-page .auth-seg-item:has(input:checked) span {
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: none;
}
.pos-auth-page .auth-seg-item:has(input:checked) span i {
    color: var(--brand);
}

/* Form fields */
.pos-auth-page .auth-sheet-form {
    gap: 1.15rem;
}
.pos-auth-page .auth-sheet-form-stack {
    gap: 1rem;
}
.pos-auth-page .auth-float-control {
    min-height: var(--input-h);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pos-auth-page .auth-float-field.is-active .auth-float-control,
.pos-auth-page .auth-float-field.is-filled .auth-float-control,
.pos-auth-page .auth-float-field:focus-within .auth-float-control {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 76, 192, 0.1);
}
.pos-auth-page .auth-float-control input {
    font-size: 1rem;
    font-weight: 500;
}
.pos-auth-page #posPinInput {
    font-size: 1.125rem;
    letter-spacing: 0.2em;
}
.pos-auth-page .auth-sheet-hint {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.5;
}

/* CTA button */
.pos-auth-page .auth-cta {
    min-height: 54px;
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.pos-auth-page .auth-cta:hover:not(:disabled) {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    transform: translateY(-1px);
}

.pos-auth-page .auth-secure-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.pos-auth-page .auth-secure-note i {
    color: var(--brand);
    margin-right: 0.25rem;
}

.pos-auth-page .pos-auth-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.25rem;
    font-size: 0.8125rem;
}
.pos-auth-page .pos-auth-links a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}
.pos-auth-page .pos-auth-links a:hover { text-decoration: underline; }

.pos-auth-page .pos-auth-help {
    margin-top: 1.75rem;
    font-size: 0.8125rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}
.pos-auth-page .pos-auth-help a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}
.pos-auth-page .pos-auth-help a:hover { text-decoration: underline; }

/* Mobile compact visual + benefits */
.pos-auth-page .pos-auth-mobile-showcase {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.pos-auth-page .pos-auth-mobile-showcase img {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 43, 112, 0.1);
    border: 1px solid rgba(0, 76, 192, 0.08);
}
.pos-auth-page .pos-auth-mobile-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    margin-top: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--brand-deep);
    text-align: center;
}
.pos-auth-page .pos-auth-mobile-benefits span:not(.pos-auth-mobile-sep) {
    white-space: nowrap;
}
.pos-auth-page .pos-auth-mobile-sep {
    color: var(--muted);
    font-weight: 400;
}

/* Reveal animations */
[data-pos-auth-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-pos-auth-reveal="scale"] {
    transform: translateY(10px) scale(0.98);
}
[data-pos-auth-reveal].is-visible {
    opacity: 1;
    transform: none;
}
.pos-auth-page .pos-auth-form-panel {
    opacity: 0;
    transform: translateY(16px);
}
.pos-auth-page .pos-auth-form-panel.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .pos-auth-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .pos-auth-body {
        align-items: flex-start;
        padding-top: 0.25rem;
    }
    .pos-auth-showcase-image {
        max-height: 280px;
    }
}

@media (max-width: 575.98px) {
    .pos-auth-page .auth-sheet-panel--pos .auth-sheet-title {
        font-size: 1.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-pos-auth-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pos-auth-page .pos-auth-form-panel {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pos-auth-page .auth-cta:hover:not(:disabled) {
        transform: none;
    }
}
