:root {
    --bg: #0b0d10;
    --panel: #111419;
    --card: #171b21;
    --line: rgba(255, 255, 255, 0.09);
    --text: #f5f7fa;
    --muted: #939ba7;
    --accent: #d8ff45;
    --accent-dark: #b7dc30;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--bg);
    color: var(--text);
}

button,
input {
    font: inherit;
}

.page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
}

.login-panel {
    padding: 42px 58px 30px;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-right: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #10120c;
    font-size: 23px;
    font-weight: 900;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.login-content {
    width: min(100%, 430px);
    margin: auto;
    padding: 70px 0;
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.intro h1 {
    margin: 15px 0 12px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.intro p {
    margin: 0;
    max-width: 380px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.login-form {
    margin-top: 42px;
}

.login-form > label {
    display: block;
    margin-bottom: 20px;
}

.login-form label > span {
    display: block;
    margin-bottom: 8px;
    color: #cdd2d8;
    font-size: 13px;
    font-weight: 600;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    padding: 0 16px;
    background: #0d1014;
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus {
    border-color: rgba(216, 255, 69, 0.75);
    box-shadow: 0 0 0 3px rgba(216, 255, 69, 0.08);
}

.form-options {
    margin: 5px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.remember span {
    margin: 0 !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
}

.remember input {
    accent-color: var(--accent);
}

.forgot {
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

button {
    width: 100%;
    height: 55px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: var(--accent);
    color: #11140a;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s ease;
}

button:hover {
    background: var(--accent-dark);
}

button:active {
    transform: scale(0.99);
}

footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #626a75;
    font-size: 11px;
}

.dot {
    opacity: 0.5;
}

.visual-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px;
    background:
        radial-gradient(circle at 75% 22%, rgba(216,255,69,0.10), transparent 30%),
        linear-gradient(145deg, #0c0f13, #090b0e);
}

.visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.visual-content {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    margin: auto;
}

.status-badge {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #bbc2cb;
    background: rgba(255,255,255,0.025);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(216,255,69,0.8);
}

.visual-content h2 {
    margin: 30px 0 20px;
    font-size: clamp(52px, 6vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.visual-content > p {
    width: min(100%, 460px);
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.preview-card {
    margin-top: 55px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(20, 24, 29, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.preview-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.preview-label {
    display: block;
    margin-bottom: 7px;
    color: #6f7884;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.preview-top strong {
    font-size: 17px;
}

.active-pill {
    height: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(216,255,69,0.1);
    color: var(--accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.preview-info {
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.preview-info span {
    display: block;
    margin-bottom: 6px;
    color: #656e79;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.preview-info strong {
    font-size: 13px;
}


@media (max-width: 900px) {

    .page {
        display: block;
    }

    .visual-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        border-right: 0;
        padding:
            max(25px, env(safe-area-inset-top))
            22px
            max(20px, env(safe-area-inset-bottom));
    }

    .login-content {
        width: 100%;
        max-width: 460px;
        padding: 55px 0;
    }

    footer {
        justify-content: center;
    }
}


@media (max-width: 480px) {

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .intro h1 {
        font-size: 40px;
    }

    .intro p {
        font-size: 14px;
    }

    .login-form {
        margin-top: 34px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    input[type="email"],
    input[type="password"],
    button {
        height: 52px;
    }
}


/* ==============================
   LOGIN ERROR
   ============================== */

.login-error {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 94, 94, 0.30);
    border-radius: 10px;
    background: rgba(255, 94, 94, 0.08);
    color: #ff9c9c;
    font-size: 13px;
    line-height: 1.45;
}


/* ==============================
   ADMIN
   ============================== */

.admin-body {
    min-height: 100vh;
    background: #0b0d10;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.admin-sidebar {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    border-right: 1px solid var(--line);
    background: #101318;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 50px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 9px;
    color: #89929e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.035);
    color: #fff;
}

.admin-nav a.active {
    background: rgba(216,255,69,0.10);
    color: var(--accent);
}

.admin-logout {
    margin-top: auto;
}

.admin-logout button {
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    color: #c7cdd5;
}

.admin-logout button:hover {
    background: rgba(255,255,255,0.04);
}

.admin-main {
    padding: 45px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.admin-header h1 {
    margin: 9px 0;
    font-size: 38px;
    letter-spacing: -0.045em;
}

.admin-header p {
    margin: 0;
    color: var(--muted);
}

.admin-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 10px 0;
}

.admin-user strong {
    font-size: 13px;
}

.admin-user span {
    color: var(--muted);
    font-size: 11px;
}

.admin-stats {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.stat-card {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #11151a;
}

.stat-card > span {
    color: #737c88;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.stat-card strong {
    display: block;
    margin-top: 14px;
    font-size: 35px;
}

.stat-card small {
    display: block;
    margin-top: 12px;
    color: #68717d;
    line-height: 1.4;
}

.admin-card {
    margin-top: 20px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #11151a;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-card h2 {
    margin: 7px 0 0;
    font-size: 19px;
}

.admin-card > p {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


@media (max-width: 1050px) {

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        min-height: auto;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav {
        margin-top: 20px;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .admin-nav a {
        white-space: nowrap;
    }

    .admin-logout {
        display: none;
    }

    .admin-main {
        padding: 25px 18px;
    }

    .admin-header {
        display: block;
    }

    .admin-user {
        margin-top: 20px;
        align-items: flex-start;
    }

    .admin-stats {
        margin-top: 30px;
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 480px) {

    .admin-header h1 {
        font-size: 31px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 125px;
    }
}
