* {
    box-sizing: border-box;
}
html,
body {
    min-height: 100%;
    margin: 0;
}
body {
    background: #f5f7fb;
    color: #172033;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
}
.auth-shell {
    display: grid;
    width: 100%;
    min-height: 100vh;
    grid-template-columns: minmax(500px, 1.05fr) minmax(460px, 0.95fr);
}
.auth-showcase {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 38px 56px;
    flex-direction: column;
    background:
        radial-gradient(
            circle at 15% 8%,
            rgba(99, 102, 241, 0.28),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(249, 115, 22, 0.22),
            transparent 32%
        ),
        linear-gradient(145deg, #161c38 0%, #202754 48%, #18203e 100%);
    color: #fff;
}
.showcase-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}
.orb-one {
    top: 18%;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.orb-two {
    right: 90px;
    bottom: 12%;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    color: #fff;
    text-decoration: none;
}
.auth-brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a1a, #f04d23);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}
.auth-brand-icon i {
    display: flex;
}
.auth-brand > span:last-child {
    display: flex;
    flex-direction: column;
}
.auth-brand strong {
    font-size: 18px;
    letter-spacing: 0.02em;
}
.auth-brand small {
    margin-top: 1px;
    color: #aeb8d7;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.showcase-copy {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    margin: auto 0;
}
.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(196, 181, 253, 0.25);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.16);
    color: #d8d2ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.showcase-badge i {
    display: flex;
    color: #fbbf24;
}
.showcase-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}
.showcase-copy h1 em {
    color: #ff8b3d;
    font-style: normal;
}
.showcase-copy > p {
    max-width: 550px;
    margin: 0;
    color: #bac3dd;
    font-size: 14px;
    line-height: 1.75;
}
.showcase-features {
    display: grid;
    margin-top: 30px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.showcase-features > div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
}
.showcase-features > div > i {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 139, 61, 0.15);
    color: #ff9c5b;
    font-size: 12px;
}
.showcase-features span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.showcase-features strong {
    font-size: 10px;
}
.showcase-features small {
    overflow: hidden;
    color: #9da8c8;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.showcase-preview {
    position: relative;
    z-index: 1;
    width: min(430px, 72%);
    margin: 30px 0 10px auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 60px rgba(5, 8, 28, 0.22);
    backdrop-filter: blur(18px);
    transform: rotate(-1deg);
}
.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 9px;
}
.preview-head > span {
    display: flex;
    gap: 4px;
}
.preview-head i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #657092;
}
.preview-head i:first-child {
    background: #ff7a59;
}
.preview-head small {
    color: #aeb8d4;
    font-size: 8px;
}
.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.preview-stats > div {
    position: relative;
    display: flex;
    padding: 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    flex-direction: column;
}
.preview-stats span {
    color: #aeb8d4;
    font-size: 7px;
}
.preview-stats strong {
    margin-top: 3px;
    font-size: 11px;
}
.preview-stats small {
    position: absolute;
    top: 9px;
    right: 9px;
    color: #4ade80;
    font-size: 7px;
}
.preview-chart {
    display: flex;
    height: 70px;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 13px 4px;
    border-radius: 8px;
    background: rgba(12, 17, 46, 0.35);
}
.preview-chart i {
    flex: 1;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(#8b7df8, #6656de);
}
.auth-showcase footer {
    position: relative;
    z-index: 1;
    color: #7f8bad;
    font-size: 9px;
}
.auth-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(124, 58, 237, 0.07),
            transparent 28%
        ),
        #f8fafc;
}
.mobile-brand {
    display: none;
}
.login-card {
    width: min(420px, 100%);
}
.login-heading {
    margin-bottom: 28px;
}
.login-kicker {
    color: #f97316;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}
.login-heading h2 {
    margin: 8px 0 7px;
    color: #172033;
    font-size: 29px;
    letter-spacing: -0.035em;
}
.login-heading p {
    margin: 0;
    color: #7b879a;
    font-size: 13px;
    line-height: 1.6;
}
.auth-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    line-height: 1.45;
}
.auth-error i {
    display: flex;
    margin-top: 2px;
}
.auth-field {
    margin-bottom: 17px;
}
.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.field-label-row span {
    color: #a0a9b8;
    font-size: 9px;
}
.field-control {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.025);
    transition:
        border-color 0.18s,
        box-shadow 0.18s;
}
.field-control:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.field-control.is-invalid {
    border-color: #fb7185;
}
.field-control > i {
    display: flex;
    flex: 0 0 auto;
    color: #9aa5b5;
    font-size: 15px;
}
.field-control input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 13px;
}
.field-control input::placeholder {
    color: #b1bac7;
}
.password-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8b96a8;
    cursor: pointer;
}
.password-toggle:hover {
    background: #f1f5f9;
    color: #f97316;
}
.password-toggle i {
    display: flex;
}
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 4px 0 20px;
}
.remember-control {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #526075;
    font-size: 11px;
    cursor: pointer;
}
.remember-control input {
    position: absolute;
    opacity: 0;
}
.remember-control > span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    font-size: 8px;
}
.remember-control input:checked + span {
    border-color: #f97316;
    background: #f97316;
}
.remember-control input:focus-visible + span {
    outline: 3px solid rgba(249, 115, 22, 0.15);
}
.remember-control i {
    display: flex;
    opacity: 0;
}
.remember-control input:checked + span i {
    opacity: 1;
}
.support-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8894a6;
    font-size: 9px;
}
.support-hint i {
    display: flex;
    color: #f97316;
}
.login-button {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff7417, #ee5527);
    box-shadow: 0 10px 22px rgba(239, 85, 39, 0.22);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.18s,
        box-shadow 0.18s;
}
.login-button:hover {
    box-shadow: 0 13px 28px rgba(239, 85, 39, 0.28);
    transform: translateY(-1px);
}
.login-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}
.login-button i {
    display: flex;
    font-size: 16px;
    transition: transform 0.18s;
}
.login-button:hover i {
    transform: translateX(3px);
}
.login-button.is-loading i {
    animation: login-spin 0.8s linear infinite;
}
.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    color: #98a2b2;
    font-size: 9px;
}
.security-note i {
    display: flex;
    color: #10b981;
}
@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width: 1000px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-showcase {
        display: none;
    }
    .auth-panel {
        padding: 24px;
    }
    .mobile-brand {
        position: absolute;
        top: 24px;
        left: 24px;
        display: flex;
        align-items: center;
        gap: 9px;
    }
    .mobile-brand .auth-brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .mobile-brand strong {
        font-size: 17px;
    }
    .login-card {
        padding-top: 52px;
    }
}
@media (max-width: 520px) {
    .auth-panel {
        display: block;
        padding: 20px;
    }
    .mobile-brand {
        position: static;
        margin-bottom: 34px;
    }
    .login-card {
        width: 100%;
        padding: 0;
    }
    .login-heading h2 {
        font-size: 25px;
    }
    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .support-hint {
        padding-left: 24px;
    }
}

/* Unified dark login surface */
body {
    background: #18203e;
    color: #f8fafc;
}
.auth-shell {
    background:
        radial-gradient(
            circle at 14% 8%,
            rgba(99, 102, 241, 0.24),
            transparent 29%
        ),
        radial-gradient(
            circle at 92% 7%,
            rgba(124, 58, 237, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(249, 115, 22, 0.14),
            transparent 38%
        ),
        linear-gradient(145deg, #1b2245 0%, #202754 48%, #18203e 100%);
}
.auth-showcase {
    background: transparent;
}
.auth-panel {
    position: relative;
    overflow: hidden;
    background: transparent;
}
.auth-panel::before,
.auth-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.auth-panel::before {
    top: -130px;
    right: -100px;
    width: 360px;
    height: 360px;
}
.auth-panel::after {
    bottom: -170px;
    left: -120px;
    width: 330px;
    height: 330px;
}
.login-card {
    position: relative;
    z-index: 1;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 28px 70px rgba(5, 8, 28, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.login-heading h2 {
    color: #fff;
}
.login-heading p {
    color: #aeb8d4;
}
.auth-field label {
    color: #e7eaf4;
}
.field-label-row span {
    color: #929dbc;
}
.field-control {
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(9, 14, 41, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.field-control:focus-within {
    border-color: #ff8b3d;
    background: rgba(9, 14, 41, 0.52);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}
.field-control > i {
    color: #939fbe;
}
.field-control input {
    color: #fff;
}
.field-control input::placeholder {
    color: #7f8baa;
}
.password-toggle {
    color: #8e9ab9;
}
.password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ff9c5b;
}
.remember-control {
    color: #b8c1d9;
}
.remember-control > span {
    border-color: rgba(255, 255, 255, 0.23);
    background: rgba(9, 14, 41, 0.28);
}
.support-hint {
    color: #929dbc;
}
.security-note {
    color: #8f9abb;
}
.auth-error {
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(159, 18, 57, 0.2);
    color: #fecdd3;
}
.mobile-brand {
    z-index: 2;
    color: #fff;
}
@media (max-width: 1000px) {
    .auth-shell {
        background:
            radial-gradient(
                circle at 100% 0,
                rgba(124, 58, 237, 0.28),
                transparent 35%
            ),
            radial-gradient(
                circle at 0 100%,
                rgba(249, 115, 22, 0.16),
                transparent 38%
            ),
            linear-gradient(145deg, #202754, #18203e);
    }
    .login-card {
        padding: 34px;
    }
}
@media (max-width: 520px) {
    .login-card {
        padding: 26px 22px;
        border-radius: 18px;
    }
    .auth-panel {
        min-height: 100vh;
    }
    .mobile-brand {
        margin-bottom: 22px;
    }
}

/* Slow ambient motion for the decorative bubbles */
.orb-one {
    animation: bubble-float-one 7.5s ease-in-out infinite alternate;
    will-change: transform;
}
.orb-two {
    animation: bubble-float-two 6s ease-in-out -2s infinite alternate;
    will-change: transform;
}
.auth-panel::before {
    animation: bubble-float-three 8s ease-in-out -3s infinite alternate;
    will-change: transform;
}
.auth-panel::after {
    animation: bubble-float-four 6.8s ease-in-out -1s infinite alternate;
    will-change: transform;
}
@keyframes bubble-float-one {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-22px, 18px, 0) scale(1.045);
    }
    100% {
        transform: translate3d(12px, -20px, 0) scale(0.97);
    }
}
@keyframes bubble-float-two {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -22px, 0) scale(0.94);
    }
    100% {
        transform: translate3d(-16px, 12px, 0) scale(1.06);
    }
}
@keyframes bubble-float-three {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(-30px, 25px, 0) rotate(5deg) scale(1.06);
    }
    100% {
        transform: translate3d(14px, 42px, 0) rotate(-3deg) scale(0.96);
    }
}
@keyframes bubble-float-four {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(28px, -28px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(-14px, -45px, 0) scale(0.95);
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
/* Prominent CamPos identity using the orange-earth product mark. */
.auth-brand {
    gap: 14px;
    padding: 7px 14px 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.025)
    );
    box-shadow: 0 14px 34px rgba(4, 8, 28, 0.2);
    backdrop-filter: blur(12px);
}
.auth-brand-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.auth-brand-icon img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 8px 13px rgba(255, 107, 0, 0.32));
}
.auth-brand strong,
.mobile-brand strong {
    background: linear-gradient(135deg, #ffb15c 0%, #ff7a18 45%, #ff5b00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.auth-brand small {
    margin-top: 5px;
    color: #d2d8eb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.mobile-brand .auth-brand-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}
.mobile-brand .auth-brand-icon img {
    width: 44px;
    height: 44px;
}
.mobile-brand strong {
    font-size: 22px;
}
/* Warm orange ambient rings aligned with the CamPos palette. */
.showcase-orb {
    border-color: rgba(255, 126, 32, 0.38);
    box-shadow:
        0 0 34px rgba(255, 107, 0, 0.16),
        inset 0 0 22px rgba(255, 139, 61, 0.08);
}
.orb-one {
    border-color: rgba(255, 139, 61, 0.34);
}
.orb-two {
    border-color: rgba(255, 107, 0, 0.42);
}
.auth-panel::before,
.auth-panel::after {
    border-color: rgba(255, 126, 32, 0.22);
    box-shadow: 0 0 42px rgba(255, 107, 0, 0.09);
}
.orb-three {
    top: 8%;
    left: 33%;
    width: 92px;
    height: 92px;
    border-color: rgba(255, 174, 96, 0.3);
    animation: bubble-float-two 8.5s ease-in-out -1.5s infinite alternate;
}
.orb-four {
    right: 23%;
    bottom: 30%;
    width: 210px;
    height: 210px;
    border-color: rgba(255, 107, 0, 0.26);
    animation: bubble-float-one 10s ease-in-out -4s infinite alternate;
}
.orb-five {
    bottom: -58px;
    left: 8%;
    width: 170px;
    height: 170px;
    border-color: rgba(255, 139, 61, 0.32);
    animation: bubble-float-four 9s ease-in-out -2s infinite alternate;
}
/* One continuous backdrop keeps both login columns visually connected. */
.auth-shell {
    background:
        radial-gradient(
            circle at 18% 14%,
            rgba(255, 126, 32, 0.13),
            transparent 25%
        ),
        radial-gradient(
            circle at 84% 18%,
            rgba(122, 92, 255, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 52% 100%,
            rgba(255, 107, 0, 0.1),
            transparent 34%
        ),
        linear-gradient(115deg, #202b60 0%, #18224d 48%, #111832 100%);
}

.auth-showcase {
    background: linear-gradient(
        90deg,
        rgba(20, 28, 64, 0.18),
        rgba(18, 25, 55, 0.03) 82%,
        transparent
    );
}

.auth-panel {
    border-left: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(13, 19, 43, 0.12) 38%,
        rgba(10, 15, 35, 0.3) 100%
    );
    box-shadow: none;
}

@media (max-width: 1000px) {
    .auth-panel {
        background: linear-gradient(
            145deg,
            rgba(20, 28, 64, 0.12),
            rgba(10, 15, 35, 0.3)
        );
        box-shadow: none;
    }
}
