:root {
    --kt-body-bg: #ffffff;
    --kt-dark: #1a1523;
    --kt-gray-800: #3f3a47;
    --kt-primary: #c81574;
    --kt-success: #1f8f5a;
    --kt-success-rgb: 31, 143, 90;
    --kt-danger: #d6336c;
    --kt-danger-rgb: 214, 51, 108;
    --kt-warning: #f2b705;
    --kt-info: #6ec1e8;
    --um-accent: #c81574;
    --um-accent-hover: #ab0f62;
    --um-accent-soft: #fbe9f2;
    --um-text: #1a1523;
    --um-text-2: #5c5566;
    --um-text-3: #8f8798;
    --um-bg: #f4f2f6;
    --um-surface: #ffffff;
    --um-panel: #faf5f8;
    --um-border: #e6e2ea;
    --um-border-strong: #cbc6d2;
    --um-ok: #1f8f5a;
    --um-ok-soft: #e4f5ec;
    --um-font-display: 'Poppins', 'Inter', system-ui, sans-serif;
    --um-font-body: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body.um-body {
    font-family: var(--um-font-body);
    font-size: 15px;
    color: var(--um-text);
    background-color: #fbe4ee;
    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='900' viewBox='0 0 520 900'%3E%3Cg fill='%23df1b7f' fill-opacity='0.05'%3E%3Cpath d='M260 40l190 110v220L260 480 70 370V150z'/%3E%3Cpath d='M470 400l190 110v220L470 840 280 730V510z'/%3E%3Cpath d='M60 560l190 110v220L60 1000-130 890V670z'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(112deg, #f7f6f9 0%, #f7f6f9 48%, rgba(247, 246, 249, 0) 62%);
    background-size: 520px 900px, auto;
    background-position: right -60px top 10%, 0 0;
    background-repeat: no-repeat, no-repeat;
    -webkit-font-smoothing: antialiased;
}

.um-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.um-card {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    background: var(--um-surface);
    border: 1px solid var(--um-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px -30px rgba(60, 20, 50, .35);
}

.um-panel {
    background: var(--um-panel);
    border-right: 1px solid var(--um-border);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.um-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto;
}

.um-panel-visual {
    align-items: center;
    text-align: center;
    background-color: #fcf3f8;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cg fill='none' stroke='%23df1b7f' stroke-opacity='0.07' stroke-width='1.5'%3E%3Cpath d='M42 2l40 23v46L42 94 2 71V25z'/%3E%3Cpath d='M42 75l40 23v46l-40 23-40-23v-46z'/%3E%3Cpath d='M0 52l40-23M84 52L44 29M0 125l40-23M84 125l-40-23'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 84px 146px;
}

.um-logo-besar {
    width: 250px;
}

.um-tagline {
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--um-text-2);
}

.um-sesi {
    margin-top: 26px;
}

.um-sesi-judul {
    font-family: var(--um-font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.3;
}

.um-sesi-tanggal {
    margin-top: 2px;
    font-size: 14px;
    color: var(--um-text-2);
}

.um-sesi-daftar {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.um-sesi-daftar li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--um-surface);
    border: 1px solid var(--um-border);
    border-radius: 12px;
    font-size: 14px;
}

.um-sesi-unit {
    font-weight: 600;
}

.um-sesi-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--um-text-3);
}

.um-sesi-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--um-border-strong);
}

.um-sesi-daftar li.buka .um-sesi-status {
    color: var(--um-ok);
}

.um-sesi-daftar li.buka .um-sesi-status::before {
    background: var(--um-ok);
}

.um-form {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.um-form h1 {
    font-family: var(--um-font-display);
    font-weight: 600;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.um-sub {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--um-text-2);
}

.um-field {
    margin-bottom: 20px;
}

.um-field label,
.um-field legend {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin: 0 0 8px;
    padding: 0;
}

.um-field fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.um-input,
.um-select {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--um-text);
    background: var(--um-surface);
    border: 1px solid var(--um-border-strong);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color .12s, box-shadow .12s;
    appearance: none;
}

.um-input:hover,
.um-select:hover {
    border-color: #aca6b5;
}

.um-input:focus,
.um-select:focus {
    outline: none;
    border-color: var(--um-accent);
    box-shadow: 0 0 0 3px rgba(200, 21, 116, .14);
}

.um-nisn {
    font-size: 18px;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
}

.um-tanggal {
    display: flex;
    align-items: stretch;
    background: var(--um-surface);
    border: 1px solid var(--um-border-strong);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .12s, box-shadow .12s;
}

.um-tanggal:hover {
    border-color: #aca6b5;
}

.um-tanggal.fokus {
    border-color: var(--um-accent);
    box-shadow: 0 0 0 3px rgba(200, 21, 116, .14);
}

.um-tanggal-bagian {
    flex: 1 1 0;
    min-width: 0;
    font: inherit;
    font-size: 15px;
    color: var(--um-text);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--um-border);
    padding: 12px 30px 12px 14px;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235c5566' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.um-tanggal-bagian:first-child {
    border-left: 0;
}

.um-tanggal-bagian:focus {
    outline: none;
    background-color: var(--um-accent-soft);
}

.um-tanggal-bagian.kosong {
    color: var(--um-text-3);
}

.um-tanggal-bulan {
    flex: 1.7 1 0;
}

.um-tanggal-tahun {
    flex: 1.2 1 0;
}

.um-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235c5566' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.um-select.kosong {
    color: var(--um-text-3);
}

.um-submit {
    width: 100%;
    margin-top: 8px;
    font-family: var(--um-font-body);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: var(--um-accent);
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color .12s;
}

.um-submit:hover {
    background: var(--um-accent-hover);
}

.um-submit:focus-visible {
    outline: 2px solid var(--um-text);
    outline-offset: 3px;
}

.um-submit[disabled] {
    opacity: .65;
    cursor: wait;
}

.um-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: um-spin .8s linear infinite;
}

.um-submit[aria-busy="true"] .um-spinner {
    display: inline-block;
}

.um-tautan {
    margin: 14px 0 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: var(--um-text-2);
}

.um-tautan a {
    color: var(--um-accent);
    font-weight: 500;
    text-decoration: none;
}

.um-tautan a:hover {
    text-decoration: underline;
}

.um-submit .indicator-progress {
    display: none;
    align-items: center;
    gap: 10px;
}

.um-submit[data-kt-indicator="on"] .indicator-label {
    display: none;
}

.um-submit[data-kt-indicator="on"] .indicator-progress {
    display: inline-flex;
}

.um-submit[data-kt-indicator="on"] .um-spinner {
    display: inline-block;
}

.swal2-popup {
    font-family: var(--um-font-body);
    border-radius: 16px;
}

.swal2-popup .swal2-title {
    font-family: var(--um-font-display);
    font-weight: 600;
}

.um-pilih {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.um-pilih label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid var(--um-border-strong);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    background: var(--um-surface);
    transition: border-color .12s, background-color .12s;
}

.um-pilih input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.um-pilih input:checked + span {
    color: var(--um-accent);
}

.um-pilih label:has(input:checked) {
    border-color: var(--um-accent);
    background: var(--um-accent-soft);
}

.um-pilih label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(200, 21, 116, .14);
}

.um-keterangan {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--um-text-3);
}

.um-form .is-invalid {
    border-color: #d6336c;
}

.um-form .fv-plugins-message-container {
    margin-top: 6px;
    font-size: 12.5px;
    color: #d6336c;
}

.um-form .fv-plugins-message-container:empty {
    display: none;
}

.um-captcha:not(:empty) {
    margin-bottom: 20px;
}

.um-baris {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
}

.um-baris .um-field {
    min-width: 0;
}

.swal2-actions .btn {
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    margin: 0 6px;
}

.swal2-actions .btn-primary {
    background: var(--um-accent);
    color: #fff;
}

.swal2-actions .btn-light,
.swal2-actions .btn-secondary {
    background: var(--um-panel);
    color: var(--um-text);
    border: 1px solid var(--um-border);
}

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

.um-card-tunggal {
    max-width: 520px;
    grid-template-columns: 1fr;
}

.um-form-tengah {
    align-items: center;
    text-align: center;
    padding: 48px 40px 44px;
}

.um-form-tengah .um-logo {
    width: 150px;
    margin-bottom: 22px;
}

.um-kode {
    font-family: var(--um-font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .08em;
    color: var(--um-accent);
    margin-bottom: 6px;
}

.um-form-tengah .um-sub {
    max-width: 34ch;
    margin-bottom: 24px;
}

.um-submit-ringkas {
    width: auto;
    min-width: 200px;
    text-decoration: none;
}

@media (max-width: 760px) {
    .um-page {
        padding: 16px 12px 28px;
        align-items: flex-start;
    }

    .um-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .um-panel {
        border-right: 0;
        border-bottom: 1px solid var(--um-border);
        padding: 24px 22px;
    }

    .um-logo {
        width: 132px;
    }

    .um-logo-besar {
        width: 160px;
    }

    .um-form {
        padding: 26px 22px 30px;
    }

    .um-baris {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .um-input,
    .um-select,
    .um-submit {
        transition: none;
    }
}
