/* ==========================================
   NCDE UI KIT v1.0 Alpha
   Nusantara Carbon Digital Ecosystem
========================================== */

:root {
    --nc-black: #050706;
    --nc-deep: #0d0f0e;
    --nc-card: rgba(13, 15, 14, 0.96);
    --nc-gold: #d4af37;
    --nc-gold-light: #f0d36b;
    --nc-text: #ffffff;
    --nc-muted: #bdbdbd;
    --nc-soft: #777777;
    --nc-border: rgba(212, 175, 55, 0.38);
    --nc-danger: #5b1717;
    --nc-success: #183f24;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #102018 0%, #050706 45%, #000 100%);
    color: var(--nc-text);
    min-height: 100vh;
}

/* AUTH LAYOUT */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: 28px;
    padding: 34px 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

/* LOGO */

.logo-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.logo-wrap a {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
}

.logo-wrap img {
    max-width: 138px;
    height: auto;
    margin-bottom: 16px;
    transition: transform .25s ease, opacity .25s ease;
}

.logo-wrap a:hover img {
    transform: scale(1.035);
    opacity: .95;
}

/* white light sweep */
.logo-wrap a::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -130%;
    width: 70%;
    height: 260%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.00) 35%,
        rgba(255,255,255,0.75) 50%,
        rgba(255,255,255,0.00) 65%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: logoLightSweep 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoLightSweep {
    0% {
        left: -130%;
        opacity: 0;
    }
    18% {
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    55% {
        left: 160%;
        opacity: 0;
    }
    100% {
        left: 160%;
        opacity: 0;
    }
}

/* BRAND */

.system-brand {
    text-align: center;
    margin-bottom: 24px;
}

.system-brand .main {
    color: var(--nc-gold);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 5px;
}

.system-brand .sub {
    margin-top: 7px;
    color: var(--nc-muted);
    font-size: 14px;
}

.auth-title {
    font-size: 42px;
    line-height: 1.1;
    margin: 0;
    text-align: center;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--nc-muted);
    text-align: center;
    line-height: 1.5;
    margin: 14px 0 28px;
    font-size: 16px;
}

/* FORM */

.form-label {
    display: block;
    color: var(--nc-gold);
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: bold;
    margin: 18px 0 8px;
}

.form-input {
    width: 100%;
    padding: 16px 16px;
    border-radius: 15px;
    border: 1px solid #333;
    background: #111312;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.form-input:focus {
    border-color: var(--nc-gold);
    background: #151816;
    box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--nc-muted);
}

/* MODERN CHECKBOX */

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-line input {
    appearance: none;
    -webkit-appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,.45);
    background: #111312;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all .2s ease;
}

.checkbox-line input:hover {
    border-color: var(--nc-gold);
}

.checkbox-line input:checked {
    background: linear-gradient(135deg, var(--nc-gold), var(--nc-gold-light));
    border-color: var(--nc-gold);
}

.checkbox-line input:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    font-size: 15px;
    font-weight: 900;
    color: #000;
}

/* BUTTON */

.btn-primary {
    width: 100%;
    margin-top: 24px;
    padding: 17px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--nc-gold), var(--nc-gold-light));
    color: #000;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212,175,55,.22);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(212,175,55,.15);
    filter: brightness(.98);
}

/* LINK */

a {
    color: var(--nc-gold);
    text-decoration: none;
    font-weight: 700;
}

/* ALERT */

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.alert-danger {
    background: var(--nc-danger);
    color: #fff;
}

.alert-success {
    background: var(--nc-success);
    color: #fff;
}

/* FOOTER */

.auth-links {
    text-align: center;
    margin-top: 22px;
    color: var(--nc-soft);
}

.footer-line {
    width: 80%;
    height: 1px;
    background: rgba(212,175,55,.22);
    margin: 28px auto 18px;
}

.motto {
    text-align: center;
    color: #cfcfcf;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .4px;
}

.version {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 11px;
}

/* LOGIN SUCCESS OVERLAY */

.login-loading {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #102018 0%, #050706 45%, #000 100%);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-loading.show {
    display: flex;
    animation: fadeIn .25s ease forwards;
}

.loading-card {
    width: 100%;
    max-width: 390px;
    text-align: center;
    background: rgba(13, 15, 14, 0.96);
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 26px;
    padding: 36px 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

.loading-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 12px;
}

.loading-user {
    color: var(--nc-gold);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.loading-subtitle {
    color: var(--nc-muted);
    font-size: 15px;
}

.loading-dot {
    width: 46px;
    height: 46px;
    margin: 0 auto 22px;
    border-radius: 50%;
    border: 3px solid rgba(212,175,55,.18);
    border-top-color: var(--nc-gold);
    animation: spin .8s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* DASHBOARD */

.dashboard-page {
    padding: 32px 18px;
}

.dashboard-container {
    max-width: 980px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.platform-card {
    background: #141715;
    border: 1px solid rgba(212,175,55,.2);
    border-radius: 22px;
    padding: 24px;
    transition: transform .2s ease, border-color .2s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: var(--nc-gold);
}

.platform-card h3 {
    margin: 0 0 8px;
    color: var(--nc-gold);
}

.platform-card p {
    color: var(--nc-muted);
    line-height: 1.5;
}

/* MOBILE */

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .auth-title {
        font-size: 38px;
    }

    .logo-wrap img {
        max-width: 132px;
    }

    .system-brand .main {
        font-size: 13px;
        letter-spacing: 4px;
    }

    .form-options {
        align-items: center;
    }

    .motto {
        font-size: 11.5px;
    }
}