/*
 * OMNEC identity / auth pages.
 * Design tokens measured from the OMNEC General Trading brand mockup.
 * Loaded AFTER bootstrap.min.css so these rules win where they overlap.
 */

:root {
    --oa-primary: oklch(40.9% .148 306.7);          /* ~ #64208F */
    --oa-primary-hover: oklch(35.5% .148 306.7);
    --oa-primary-fg: oklch(98.5% .006 306);         /* ~ #FBF8FC */
    --oa-bg: oklch(98.5% .004 285);                 /* ~ #F8F8FB */
    --oa-fg: oklch(29.2% .014 285.5);               /* ~ #3B3A45 */
    --oa-muted: oklch(96.5% .011 256.7);            /* ~ #F0F2F7 */
    --oa-muted-fg: oklch(53.5% .02 296.3);          /* ~ #7C7690 */
    --oa-border: oklch(91.2% .008 290);             /* ~ #E4E1E9 */
    --oa-card: oklch(100% 0 0);                     /* #FFFFFF   */
    --oa-accent: oklch(94.5% .02 300);              /* ~ #EFE9F5 */
    --oa-gold: oklch(73.1% .087 90);                /* ~ #C9A227 */
    --oa-brand-blue: oklch(44% .13 254.5);          /* ~ #1F4F8F */
    --oa-danger: oklch(55.4% .206 21.1);

    --oa-radius: .9rem;                             /* 14.4px */
    --oa-radius-ctl: calc(var(--oa-radius) - 2px);  /* 12.4px */
    --oa-radius-card: calc(var(--oa-radius) + 4px); /* 18.4px */

    --oa-font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --oa-font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --oa-shadow-card: 0 1px 2px 0 oklch(.29 .08 300 / .06),
                      0 12px 30px -18px oklch(.29 .08 300 / .35);
}

body {
    margin: 0;
    font-family: var(--oa-font-body);
    background-color: var(--oa-bg);
    color: var(--oa-fg);
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ shell */

.oa-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .oa-shell { grid-template-columns: 1.05fr 1fr; }
}

/* ----------------------------------------------------------- brand aside */

.oa-aside {
    display: none;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: var(--oa-primary-fg);
    background-image: linear-gradient(135deg,
        oklch(.35 .103 254.5),
        oklch(.409 .148 306.7) 60%,
        oklch(.554 .206 21.1));
}

@media (min-width: 1024px) {
    .oa-aside { display: flex; }
}

.oa-blob {
    position: absolute;
    pointer-events: none;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(64px);
}

.oa-blob-gold { top: -6rem; right: -4rem; background-color: oklch(73.1% .087 90 / .25); }
.oa-blob-blue { bottom: -8rem; left: -5rem; background-color: oklch(44% .13 254.5 / .4); }

.oa-aside-body { position: relative; max-width: 28rem; }

.oa-headline {
    margin: 0;
    font-family: var(--oa-font-display);
    font-size: 2.25rem;
    line-height: 1.25;
    letter-spacing: -.015em;
    font-weight: 600;
}

.oa-lede {
    margin: 1rem 0 0;
    font-size: .875rem;
    line-height: 1.4286;
    opacity: .8;
}

.oa-features {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-size: .875rem;
    line-height: 1.4286;
}

.oa-features li { display: flex; align-items: center; gap: .75rem; }

.oa-feature-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: oklch(73.1% .087 90 / .25);
    color: var(--oa-gold);
}

.oa-aside-foot {
    position: relative;
    margin: 0;
    font-size: .75rem;
    opacity: .6;
}

/* ---------------------------------------------------------- brand lockup */

.oa-brand { position: relative; display: flex; align-items: center; gap: .75rem; }

.oa-brand-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    padding: .5rem;
    border-radius: 1rem;
    background-color: oklch(98.5% .006 306 / .1);
    backdrop-filter: blur(8px);
}

.oa-brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.oa-brand-name {
    margin: 0;
    font-family: var(--oa-font-display);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 600;
}

.oa-brand-sub {
    margin: .25rem 0 0;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    opacity: .7;
}

/* Dark variant, shown above the form on narrow screens only. */
.oa-brand--dark { color: var(--oa-fg); margin-bottom: 2.5rem; }
.oa-brand--dark .oa-brand-mark { background-color: var(--oa-accent); backdrop-filter: none; }
.oa-brand--dark .oa-brand-sub { opacity: 1; color: var(--oa-muted-fg); }

@media (min-width: 1024px) {
    .oa-brand--dark { display: none; }
}

/* ------------------------------------------------------------ main column */

.oa-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.oa-main-inner { width: 100%; max-width: 28rem; }

.oa-title {
    margin: 0;
    font-family: var(--oa-font-display);
    font-size: 1.875rem;
    line-height: 2.25rem;
    letter-spacing: -.015em;
    font-weight: 600;
    color: var(--oa-fg);
}

.oa-subtitle {
    margin: .375rem 0 1.5rem;
    font-size: .875rem;
    line-height: 1.4286;
    color: var(--oa-muted-fg);
}

.oa-hint {
    margin: 0 0 1.25rem;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--oa-muted-fg);
}

.oa-foot {
    margin: 1.25rem 0 0;
    font-size: .8125rem;
    color: var(--oa-muted-fg);
    text-align: center;
}

/* ------------------------------------------------------------------ tabs */

.oa-tabs { position: relative; }

.oa-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.oa-tablist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    padding: .25rem;
    margin-bottom: 1.25rem;
    background-color: var(--oa-muted);
    border-radius: var(--oa-radius-ctl);
}

.oa-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 1.75rem;
    margin: 0;
    font-size: .875rem;
    font-weight: 500;
    color: var(--oa-muted-fg);
    border-radius: calc(var(--oa-radius-ctl) - 2px);
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease;
}

.oa-tab svg { flex: none; width: .9375rem; height: .9375rem; }

#oa-tab-staff:checked ~ .oa-tablist .oa-tab[for="oa-tab-staff"],
#oa-tab-customer:checked ~ .oa-tablist .oa-tab[for="oa-tab-customer"] {
    background-color: var(--oa-bg);
    color: var(--oa-fg);
    box-shadow: 0 1px 2px 0 oklch(.29 .08 300 / .1);
}

#oa-tab-staff:focus-visible ~ .oa-tablist .oa-tab[for="oa-tab-staff"],
#oa-tab-customer:focus-visible ~ .oa-tablist .oa-tab[for="oa-tab-customer"] {
    outline: 2px solid var(--oa-primary);
    outline-offset: 2px;
}

.oa-panel { display: none; }
#oa-tab-staff:checked ~ .oa-panel-staff { display: block; }
#oa-tab-customer:checked ~ .oa-panel-customer { display: block; }

/* ---------------------------------------------------------------- fields */

.oa-field { margin-bottom: 1rem; }

.oa-label {
    display: block;
    margin-bottom: .375rem;
    font-size: .75rem;
    font-weight: 500;
    color: var(--oa-muted-fg);
}

.oa-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.oa-control { position: relative; }

.oa-input-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--oa-muted-fg);
    pointer-events: none;
}

.oa-input {
    display: block;
    width: 100%;
    height: 2.25rem;
    padding: .25rem .75rem;
    font-family: inherit;
    font-size: .875rem;
    color: var(--oa-fg);
    background-color: transparent;
    border: 1px solid var(--oa-border);
    border-radius: var(--oa-radius-ctl);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.oa-input-icon ~ .oa-input { padding-left: 2.25rem; }

.oa-input::placeholder { color: var(--oa-muted-fg); opacity: .7; }

.oa-input:focus {
    outline: none;
    border-color: var(--oa-primary);
    box-shadow: 0 0 0 3px oklch(40.9% .148 306.7 / .15);
}

.oa-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    color: var(--oa-muted-fg);
}

.oa-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--oa-primary);
}

.oa-check label { margin: 0; cursor: pointer; }

/* --------------------------------------------------------------- buttons */

.oa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 1.5rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--oa-radius-ctl);
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.oa-btn:focus-visible { outline: 2px solid var(--oa-primary); outline-offset: 2px; }

.oa-btn svg { flex: none; }

.oa-btn-primary { background-color: var(--oa-primary); color: var(--oa-primary-fg); }
.oa-btn-primary:hover { background-color: var(--oa-primary-hover); color: var(--oa-primary-fg); }

.oa-btn-social {
    background-color: var(--oa-card);
    color: var(--oa-fg);
    border-color: var(--oa-border);
    box-shadow: 0 1px 2px 0 oklch(.29 .08 300 / .05);
}

.oa-btn-social:hover { background-color: var(--oa-muted); color: var(--oa-fg); }
.oa-btn-social + .oa-btn-social { margin-top: .75rem; }
.oa-btn-social svg { width: 1.125rem; height: 1.125rem; }

/* ----------------------------------------------------- links / surfaces */

.oa-link {
    color: var(--oa-primary);
    font-weight: 500;
    text-decoration: none;
}

.oa-link:hover { color: var(--oa-primary-hover); text-decoration: underline; }
.oa-link-sm { font-size: .75rem; }

.oa-surface {
    padding: 1.25rem;
    background-color: var(--oa-card);
    border: 1px solid var(--oa-border);
    border-radius: var(--oa-radius-card);
    box-shadow: var(--oa-shadow-card);
    font-size: .875rem;
    line-height: 1.6;
    color: var(--oa-fg);
}

.oa-surface p { margin: 0 0 .75rem; }
.oa-surface p:last-child { margin-bottom: 0; }

.oa-status {
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--oa-radius-ctl);
}

.oa-status-success {
    color: oklch(45% .12 155);
    background-color: oklch(45% .12 155 / .08);
    border-color: oklch(45% .12 155 / .25);
}

.oa-status-danger {
    color: var(--oa-danger);
    background-color: oklch(55.4% .206 21.1 / .07);
    border-color: oklch(55.4% .206 21.1 / .25);
}

/* ------------------------------------------------------------ validation */

.oa-main .validation-summary-valid { display: none; }

.oa-main div.validation-summary-errors {
    padding: .625rem .875rem;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    color: var(--oa-danger);
    background-color: oklch(55.4% .206 21.1 / .07);
    border: 1px solid oklch(55.4% .206 21.1 / .25);
    border-radius: var(--oa-radius-ctl);
}

.oa-main div.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

.oa-main span.text-danger,
.oa-main .field-validation-error {
    display: block;
    margin-top: .375rem;
    font-size: .75rem;
    color: var(--oa-danger);
}

.oa-input.input-validation-error { border-color: oklch(55.4% .206 21.1 / .6); }
