/* =====================================================================
   Auth (guest) — 50/50 split layout
   ===================================================================== */

.auth-layout {
    min-height: 100vh;
    display: flex;
}

/* Left panel: branding */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--blue) 0%, #2d4d8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

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

.auth-brand-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
}

.auth-brand-logo {
    height: 72px;
    width: 72px;
    object-fit: contain;
    border-radius: 0;
    background: none;
    padding: 0;
}

.auth-brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-brand-inst {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.auth-brand-inst-label {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.auth-brand-inst-name {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.auth-brand-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.auth-brand-divider {
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--lime, #CBDB2A);
    margin-bottom: 1rem;
}

.auth-brand-hero p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.6;
    max-width: 380px;
}

.auth-brand-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.auth-brand-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(66,106,179,.6) 0%, rgba(45,77,138,.65) 100%);
    z-index: 2;
}

.auth-building-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Right panel: form */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: var(--bg, #F6F8FC);
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
}

.auth-form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink, #231F20);
    margin-bottom: .25rem;
}

.auth-form-subtitle {
    font-size: 13px;
    color: var(--sub, #6B7280);
    margin-bottom: 1.5rem;
}

/* Role switch tabs */
.auth-role-switch {
    display: flex;
    background: var(--white, #fff);
    border: 1px solid var(--border, #DDE4EF);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.auth-role-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sub, #6B7280);
    cursor: pointer;
    transition: all .15s;
}

.auth-role-btn:hover {
    color: var(--blue, #426AB3);
    background: rgba(66,106,179,.05);
}

.btn-check:checked + .auth-role-btn {
    background: var(--blue, #426AB3);
    color: #fff;
}

/* Buttons */
.auth-btn {
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
}

.auth-btn-google {
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border-color: var(--border, #DDE4EF);
    color: var(--ink, #231F20);
}

.auth-btn-google:hover {
    background: var(--white, #fff);
    border-color: var(--blue, #426AB3);
    color: var(--blue, #426AB3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--sub, #6B7280);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border, #DDE4EF);
}

.auth-divider::before { margin-right: .75rem; }
.auth-divider::after { margin-left: .75rem; }

/* Checkbox scroll */
.checkbox-scroll {
    max-height: 160px;
    overflow-y: auto;
}

/* Legacy guest styles (fallback) */
.guest-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--blue) 0%, #2d4d8a 100%);
    padding: 1.5rem;
}

.guest-card {
    width: 440px;
    max-width: 100%;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(35, 31, 32, .18);
    padding: 2.25rem;
}

.guest-card .mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 24px;
}

.guest-brand b {
    font-size: 16px;
}

.guest-brand small {
    font-size: 11px;
}

/* Auth responsive */
@media (max-width: 991.98px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 1.5rem 2rem;
    }

    .auth-brand-top {
        margin-bottom: 1rem;
    }

    .auth-brand-hero h1 {
        font-size: 22px;
    }

    .auth-brand-hero p {
        display: none;
    }

    .auth-brand-divider {
        display: none;
    }

    .auth-brand-image {
        height: 100%;
    }

    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-brand-panel {
        padding: 1.25rem 1rem;
    }

    .auth-brand-logo {
        height: 48px;
        width: 48px;
    }

    .auth-brand-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .auth-brand-inst-label {
        font-size: 11px;
    }

    .auth-brand-inst-name {
        font-size: 13px;
    }

    .auth-brand-hero h1 {
        font-size: 18px;
        margin-bottom: 0;
    }

    .auth-form-panel {
        padding: 1.5rem 1rem;
    }

    .auth-form-title {
        font-size: 18px;
    }
}

/* Toast */
.toast {
    border-radius: 12px;
}

/* =====================================================================
   Utility classes (menggantikan inline styles)
   ===================================================================== */

.float-r {
    float: right;
}

.mt-16 {
    margin-top: 16px;
}

.text-danger {
    color: var(--red);
}

.h3-spaced {
    margin-top: 20px;
}

.form-actions {
    text-align: right;
    margin-top: 16px;
}

.formcard-max {
    margin-top: 14px;
    max-width: 720px;
}

.formcard-md {
    max-width: 760px;
}

.frow-full {
    grid-column: 1 / -1;
}

.col-min {
    min-width: 220px;
}

.checkbox-scroll {
    max-height: 220px;
    overflow-y: auto;
}

.scroll-box {
    max-height: 180px;
    overflow-y: auto;
}

.imprint-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
}

.note-box {
    background: #fffde0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 10px;
    margin-bottom: 12px;
}

.img-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.zoom-in {
    cursor: zoom-in;
}

.img-preview {
    max-height: 70vh;
    object-fit: contain;
}

.img-sq {
    width: 90px;
    height: 90px;
    object-fit: cover;
}

.workflow-dot {
    width: 36px;
    height: 36px;
}

/* =====================================================================
   Dashboard profile card
   ===================================================================== */

/* =====================================================================
   Dashboard profile card (vertical) — right sidebar
   ===================================================================== */

.dash-layout {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

.dash-main {
    flex: 1;
    min-width: 0;
}

.dash-side {
    width: 280px;
    flex-shrink: 0;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.profile-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 20px;
    text-align: center;
    flex: 1;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 800;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -.3px;
}

.profile-role {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-pale);
    padding: 4px 14px;
    border-radius: 99px;
}

.profile-body {
    padding: 0 20px 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.profile-label {
    font-size: 11px;
    color: var(--sub);
    margin-bottom: 4px;
}

.profile-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

@media (max-width: 900px) {
    .dash-grid-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .profile-top {
        padding: 20px 12px 16px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }

    .profile-name {
        font-size: 15px;
    }

    .profile-body {
        padding: 0 16px 16px;
    }
}

/* =====================================================================
   Page hero gradient background (dashboard & portal)
   ===================================================================== */
