@import url('https://fonts.googleapis.com/css2?family=Allura&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #174c3a;
    --primary-dark: #103729;
    --primary-light: #e9f1ec;
    --yellow: #e8d98b;
    --background: #f6f7f4;
    --surface: #ffffff;
    --text: #26332d;
    --muted: #7b8780;
    --border: #e8ece8;
    --shadow: 0 8px 28px rgba(24, 55, 40, 0.07);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--background);
}

a {
    text-decoration: none;
}

/* =================================
   LOGIN MONREAL
================================= */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 65% 35%;
    background: #fafbf8;
}

/* PANEL FOTO KIRI */

.login-visual {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 55px 8%;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(16, 55, 41, 0.93),
        rgba(23, 76, 58, 0.79),
        rgba(211, 190, 105, 0.48)
    );
    pointer-events: none;
}

.visual-content,
.visual-footer {
    position: relative;
    z-index: 2;
}

.visual-content {
    max-width: 650px;
    color: white;
    margin-top: auto;
    margin-bottom: auto;
}

.visual-tagline {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 30px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* TULISAN SELAMAT DATANG */

.visual-content .welcome-script {
    display: block;
    font-family: 'Allura', cursive;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0;
}

/* NAMA SISTEM */

.visual-content {
    max-width: 850px;
    width: 100%;
}

.visual-content h1 {
    font-size: 40px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 20px;
    max-width: 850px;
}

.visual-content h1 span {
    color: var(--yellow);
}

.visual-content p {
    max-width: 600px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
}

.visual-footer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-top: 35px;
}

/* PANEL FORM KANAN */

.login-form-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 30px;
    background: #fafbf8;
}

.login-form-wrapper {
    width: 100%;
    max-width: 360px;
}

/* LOGO DI ATAS FORM */

.login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 35px;
}

.login-logos img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.login-logo-placeholder {
    width: 88px;
    height: 88px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed #aab9ac;
    border-radius: 12px;
    color: #78907e;
    font-size: 10px;
    font-weight: 700;
}

/* JUDUL FORM */

.form-welcome {
    margin-bottom: 30px;
    text-align: left;
}

.form-label-top {
    color: #78907e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.form-welcome h2 {
    color: var(--text);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 9px;
}

.form-welcome p {
    color: #849087;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

/* INPUT LOGIN */

.login-form-panel .form-label {
    color: #37443c;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 9px;
}

.login-form-panel .form-control {
    height: 49px;
    border: 1px solid #e5eae4;
    border-radius: 9px;
    background: white;
    font-size: 12px;
    padding: 0 14px;
}

.login-form-panel .form-control:focus {
    border-color: #73977b;
    box-shadow: 0 0 0 3px rgba(115, 151, 123, 0.12);
}

.btn-simora {
    height: 49px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(110deg, #174c3a, #477b50);
    color: white;
    font-size: 12px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-simora:hover {
    background: linear-gradient(110deg, #103729, #376844);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(23, 76, 58, 0.16);
}

.login-form-footer {
    color: #9aa49d;
    font-size: 9px;
    text-align: center;
    line-height: 1.8;
    margin-top: 30px;
}

/* =================================
   DASHBOARD ADMIN DAN USER
================================= */

.app-layout {
    min-height: 100vh;
}

.sidebar {
    width: 255px;
    background: var(--primary-dark);
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    padding: 25px 17px;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.sidebar-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.sidebar-brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.sidebar-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    margin-top: 3px;
}

.sidebar-label {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 25px 11px 10px;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.76);
    padding: 12px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.13);
}

.sidebar-link.active {
    font-weight: 700;
}

.sidebar-link .nav-icon {
    width: 18px;
    text-align: center;
}

.main-area {
    margin-left: 255px;
    min-height: 100vh;
}

.topbar {
    height: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.topbar-title {
    font-size: 14px;
    font-weight: 700;
}

.topbar-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.profile-name {
    font-size: 12px;
    font-weight: 700;
}

.profile-role {
    font-size: 10px;
    color: var(--muted);
    margin-top: 3px;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 13px;
    font-weight: 800;
}

.content-area {
    padding: 30px 32px;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 21px;
    height: 100%;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.stat-value {
    font-size: 27px;
    font-weight: 800;
    margin-top: 12px;
    color: var(--text);
}

.stat-note {
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}

.stat-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 17px;
}

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 14px;
    font-weight: 700;
}

.panel-subtitle {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

.table {
    font-size: 12px;
    vertical-align: middle;
}

.table thead th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #f8faf8;
    padding: 13px;
    border-bottom: 1px solid var(--border);
}

.table tbody td {
    padding: 14px 13px;
    border-color: var(--border);
}

.status-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

/* =================================
   RESPONSIVE
================================= */

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: 60% 40%;
    }

    .visual-content h1 {
        font-size: 49px;
    }

    .visual-content .welcome-script {
        font-size: 36px;
    }

    .login-form-panel {
        padding: 30px 22px;
    }

    .login-logos {
        gap: 18px;
    }

    .login-logos img,
    .login-logo-placeholder {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 700px) {
    .login-page {
        display: flex;
        flex-direction: column;
    }

    .login-visual {
        min-height: 390px;
        padding: 38px 28px;
    }

    .visual-content .welcome-script {
        font-size: 36px;
    }

    .visual-content h1 {
        font-size: 45px;
    }

    .visual-content p {
        font-size: 12px;
    }

    .visual-footer {
        margin-top: 25px;
    }

    .login-form-panel {
        min-height: auto;
        padding: 42px 25px;
    }

    .login-logos {
        margin-bottom: 28px;
    }

    .login-logos img,
    .login-logo-placeholder {
        width: 75px;
        height: 75px;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .main-area {
        margin-left: 0;
    }

    .topbar {
        padding: 0 18px;
    }

    .content-area {
        padding: 22px 16px;
    }
}

/* =================================
   PENYESUAIAN LOGO DAN FORM AUTH
================================= */

/* Logo sejajar dan seimbang */
.login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto 28px;
}

.login-logos img,
.login-logo-placeholder {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.login-logos img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Judul dan deskripsi rata tengah */
.form-welcome {
    text-align: center;
    margin-bottom: 25px;
}

.form-label-top {
    text-align: center;
    margin-bottom: 12px;
}

.form-welcome h2 {
    text-align: center;
}

.form-welcome p {
    text-align: center;
}

/* Tab Login dan Daftar */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    background: #edf1ed;
    border-radius: 10px;
    margin-bottom: 24px;
}

.auth-tabs button {
    height: 39px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #7b8780;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
}

.auth-tabs button.active {
    background: #174c3a;
    color: #ffffff;
    box-shadow: 0 3px 9px rgba(23, 76, 58, 0.13);
}

.auth-tabs button:hover:not(.active) {
    color: #174c3a;
}

/* Form pendaftaran dapat digulir jika layar pendek */
.login-form-wrapper {
    max-height: calc(100vh - 45px);
    overflow-y: auto;
    padding: 8px 5px;
}

.login-form-wrapper::-webkit-scrollbar {
    width: 4px;
}

.login-form-wrapper::-webkit-scrollbar-thumb {
    background: #d7dfd8;
    border-radius: 10px;
}

/* Penyesuaian layar kecil */
@media (max-width: 700px) {
    .login-form-wrapper {
        max-height: none;
        overflow: visible;
    }

    .login-logos img,
    .login-logo-placeholder {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }
}

/* =========================================
   REVISI AREA LOGO LOGIN
========================================= */

.login-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0 auto 28px;
}

.login-logos img,
.login-logo-placeholder {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    object-fit: contain;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

/* Menjaga posisi logo tetap seimbang di layar kecil */
@media (max-width: 700px) {
    .login-logos {
        gap: 16px;
    }

    .login-logos img,
    .login-logo-placeholder {
        width: 95px;
        height: 95px;
        flex-basis: 95px;
    }
}

/* =========================================
   REVISI SIDEBAR TANPA LOGO
========================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 76px;
    padding: 20px 22px;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-brand-text strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.sidebar-brand-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

