:root {
    --auth-green: #073226;
    --auth-green-2: #0c4a38;
    --auth-orange: #f26b1d;
    --auth-orange-dark: #dc5a12;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-bg: #f6f7f4;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.auth-login-page {
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(7, 50, 38, 0.06), transparent 28%),
        var(--auth-bg);
    color: var(--auth-text);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(242, 107, 29, 0.2), transparent 28%),
        linear-gradient(165deg, #031910 0%, #073226 42%, #0a4a38 100%);
    color: #fff;
    padding: 36px 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -200px;
    border-radius: 50%;
    background: rgba(242, 107, 29, 0.1);
}

.auth-shelf {
    position: absolute;
    inset: 0 auto 0 0;
    width: 18px;
    background:
        linear-gradient(#c2410c 0 12%, #b45309 12% 22%, #0f766e 22% 38%, #92400e 38% 50%, #b91c1c 50% 62%, #1d4ed8 62% 76%, #a16207 76% 88%, #065f46 88% 100%);
    opacity: 0.78;
    z-index: 2;
}

.auth-brand-top,
.auth-brand-mid,
.auth-brand-foot {
    position: relative;
    z-index: 1;
}

.auth-brand-mid {
    padding-left: 10px;
}

.auth-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-left: 10px;
}

.auth-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.auth-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.auth-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f8d2b8;
}

.auth-brand h1 {
    margin: 0 0 12px;
    font-family: Fraunces, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.03em;
    max-width: 520px;
}

.auth-brand p.lead {
    margin: 0 0 26px;
    max-width: 500px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
}

.ops-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.ops-kpi {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ops-kpi span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 4px;
}

.ops-kpi strong {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ops-console {
    padding: 14px;
    border-radius: 18px;
    background: rgba(2, 12, 9, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.ops-console-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.ops-seats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

.ops-seats span {
    aspect-ratio: 1;
    border-radius: 6px;
    background: rgba(167, 243, 208, 0.22);
    border: 1px solid rgba(167, 243, 208, 0.28);
}

.ops-seats span.is-busy {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
    border-color: transparent;
    box-shadow: 0 6px 12px rgba(234, 88, 12, 0.22);
}

.ops-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.ops-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
    background: rgba(167, 243, 208, 0.35);
}

.ops-legend i.is-busy {
    background: #ea580c;
}

.ops-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ops-modules span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.ops-modules i {
    color: #fdba74;
    width: 14px;
}

.auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

.auth-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(242, 107, 29, 0.2);
    color: #ffb37a;
    font-size: 11px;
    margin-top: 1px;
}

.auth-brand-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-left: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid #edf0ea;
    border-radius: 24px;
    padding: 32px 34px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.login-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.login-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #0b4333 0%, #073226 100%);
    color: #fdba74;
    font-size: 18px;
    flex-shrink: 0;
}

.login-eyebrow {
    margin: 0 0 2px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f26b1d;
    font-weight: 700;
}

.auth-card h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-card .sub {
    margin: 0 0 24px;
    color: var(--auth-muted);
    font-size: 14px;
}

.login-secure {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2ee;
    font-size: 11px;
    color: #64748b;
}

.login-secure i {
    color: #0b4333;
    margin-right: 4px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.auth-field input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    padding: 0 44px 0 14px;
    font-size: 15px;
    color: var(--auth-text);
    background: #fbfbfa;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input:focus {
    background: #fff;
    border-color: #f26b1d;
    box-shadow: 0 0 0 4px rgba(242, 107, 29, 0.12);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.auth-input-wrap i.fa-eye,
.auth-input-wrap i.fa-eye-slash {
    cursor: pointer;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 22px;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-orange) 0%, var(--auth-orange-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(242, 107, 29, 0.25);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

body.auth-login-page .swal2-container,
body.auth-register-page .swal2-container {
    z-index: 200000 !important;
}

.auth-switch {
    margin: 22px 0 0;
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-switch a {
    color: var(--auth-orange);
    font-weight: 700;
    text-decoration: none;
}

.auth-home {
    display: inline-flex;
    margin-top: 18px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: auto;
        padding: 24px 22px 28px;
    }

    .auth-brand h1 {
        font-size: 28px;
    }

    .auth-shelf,
    .auth-live,
    .auth-brand-foot,
    .auth-points,
    .ops-kpis,
    .ops-console,
    .ops-modules,
    .login-secure {
        display: none;
    }

    .auth-panel {
        padding: 24px 16px 36px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 20px;
    }
}

/* Register page */
body.auth-register-page {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-register-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
}

.auth-register-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
}

.auth-card-wide {
    max-width: 640px;
}

.auth-card-wide h2 {
    font-family: Fraunces, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.req {
    color: #dc2626;
    font-weight: 700;
    margin-left: 1px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-grid .auth-field {
    margin-bottom: 14px;
}

.auth-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #94a3b8;
}

.auth-error {
    display: block;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #dc2626;
}

.auth-error:not(:empty) {
    margin-top: 6px;
}

.auth-field input.is-invalid,
.auth-terms.is-invalid input {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.auth-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 10px 0 8px;
    padding: 12px 14px;
    border: 1px solid #edf0ea;
    border-radius: 12px;
    background: #f8faf8;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

.auth-terms input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--auth-orange);
}

.auth-terms label {
    margin: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    cursor: pointer;
}

.auth-terms a {
    color: var(--auth-orange);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.auth-terms.is-invalid {
    border-color: #fecaca;
    background: #fef2f2;
}

.auth-terms.is-invalid label {
    color: #dc2626;
}

.auth-register-page .auth-submit {
    margin-top: 10px;
}

.auth-register-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 44px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(242, 107, 29, 0.22), transparent 34%),
        linear-gradient(160deg, #05261d 0%, #0b4333 48%, #08382c 100%);
}

.auth-register-visual::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: -160px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(242, 107, 29, 0.12);
}

.auth-register-visual .auth-logo,
.auth-visual-art,
.auth-visual-copy {
    position: relative;
    z-index: 1;
}

.auth-visual-art {
    display: grid;
    place-items: center;
    flex: 1;
    margin: 28px 0;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.auth-visual-art img {
    width: min(100%, 460px);
    height: auto;
    display: block;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
}

.auth-visual-copy h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.auth-visual-copy p {
    margin: 0;
    max-width: 380px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 980px) {
    .auth-register-shell {
        grid-template-columns: 1fr;
    }

    .auth-register-visual {
        display: none;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-register-main {
        padding: 24px 16px 36px;
    }

    .auth-terms label {
        white-space: normal;
    }
}

.auth-otp-card {
    max-width: 520px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.otp-box {
    width: 52px;
    height: 58px;
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--auth-text);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.otp-box:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 4px rgba(242, 107, 29, 0.14);
}

@media (max-width: 520px) {
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 18px;
    }
}
