/* ==========================================================================
   Login NOC Mayatama — full-bleed split sign in
   Standalone stylesheet: no Bootstrap, no icon font, no CDN.
   ========================================================================== */

:root {
    --brand: #4361ee;
    --brand-dark: #2d3fc4;
    --brand-darker: #1f2f9e;

    --ink: #0f172a;
    --ink-soft: #5b6472;
    --ink-faint: #9aa3b2;

    --line: #e3e8ef;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Page shell: full-bleed split screen --------------------------------- */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}

/* Grid items default to min-width:auto, which lets long text push the
   track wider than the viewport instead of wrapping. */
.auth-brand,
.auth-form {
    min-width: 0;
}

/* --- Left: brand panel ----------------------------------------------------- */

.auth-brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 62%, var(--brand-darker) 100%);
}

/* Faint concentric arcs, mirroring the mockup's radiating rings. */
.brand-arcs {
    position: absolute;
    top: -35%;
    left: -10%;
    width: 130%;
    height: 170%;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-radial-gradient(
            circle at 20% 20%,
            transparent 0,
            transparent 78px,
            rgba(255, 255, 255, 0.07) 79px,
            rgba(255, 255, 255, 0.07) 80px,
            transparent 81px,
            transparent 158px
        );
    -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
    mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
}

.brand-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 22px -8px rgba(4, 12, 40, 0.45);
}

.brand-mark img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-title {
    margin: 0;
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.18;
}

.brand-desc {
    margin: 24px auto 0;
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
}

.brand-footer {
    position: relative;
    z-index: 1;
    margin: 56px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Right: form panel ------------------------------------------------------ */

.auth-form {
    padding: 48px 72px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.form-brand {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 0 8px;
}

.form-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.form-title {
    margin: 0 0 36px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.link-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--brand);
}

/* Underline-style fields, as in the mockup. */
.field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1.5px solid var(--line);
    transition: border-color 0.2s ease;
}

.field + .field {
    margin-top: 20px;
}

.field:focus-within {
    border-bottom-color: var(--brand);
}

.field input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    padding: 2px 0;
}

.field input::placeholder {
    color: var(--ink-faint);
    font-weight: 500;
}

/* Chrome autofill would otherwise paint a yellow box over the field. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    transition: background-color 9999s ease-in-out 0s;
}

.field-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 4px;
    color: var(--ink-faint);
    cursor: pointer;
}

.field-toggle svg {
    width: 19px;
    height: 19px;
    display: block;
}

.field-toggle .icon-eye-off {
    display: none;
}

.field-toggle.is-visible .icon-eye {
    display: none;
}

.field-toggle.is-visible .icon-eye-off {
    display: block;
}

.field-toggle:hover {
    color: var(--brand);
}

/* --- Remember me ----------------------------------------------------------- */

.remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 18px 0 26px;
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
    cursor: pointer;
    margin: 0;
}

/* --- Buttons ----------------------------------------------------------------- */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    border: none;
    color: #ffffff;
    background: var(--ink);
    box-shadow: 0 14px 26px -12px rgba(15, 23, 42, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px -12px rgba(15, 23, 42, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid rgba(67, 97, 238, 0.45);
    outline-offset: 2px;
}

.form-foot {
    margin: 26px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-faint);
}

.form-foot .link-btn {
    color: var(--ink-soft);
}

/* Copyright line duplicated from .brand-footer for phones, where the whole
   brand panel (and its footer) is hidden — see the max-width:640px block. */
.form-copyright {
    display: none;
    margin: 0;
    font-size: 0.75rem;
    color: var(--ink-faint);
}

/* --- Responsive ---------------------------------------------------------- */

/* Tablet: stack the two panels, brand panel keeps its heading + footer. */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 40px 34px 36px;
    }

    .brand-desc {
        display: none;
    }

    .brand-footer {
        margin-top: 22px;
    }

    .auth-form {
        padding: 38px 34px 42px;
    }
}

/* Phone: drop the brand panel entirely — just the logo and the form. */
@media (max-width: 640px) {
    .auth-brand {
        display: none;
    }

    .auth-form {
        min-height: 100vh;
        justify-content: center;
        padding: 32px 24px;
    }

    .form-brand {
        height: 56px;
        margin-top: 64px;
        margin-bottom: 4px;
    }

    .form-copyright {
        display: block;
        margin-top: auto;
        padding-top: 24px;
    }
}

@media (max-width: 420px) {
    .auth-form {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
