/* PDSS Backend — Login Sekolah (mockup) */
:root {
    --pdss-navy: #1a2b4b;
    --pdss-navy-deep: #13223d;
    --pdss-blue: #2563eb;
    --pdss-blue-dark: #1d4ed8;
    --pdss-orange: #f59f00;
    --pdss-green: #2fb344;
    --pdss-bg: #e8eaef;
    --pdss-text: #1f2937;
    --pdss-muted: #6b7280;
    --pdss-card: #ffffff;
}

* { box-sizing: border-box; }

/*
 * Bootstrap 3 menetapkan html { font-size: 10px } sehingga semua unit rem mengecil.
 * Kembalikan ke 16px agar rasio tampilan normal.
 */
html {
    font-size: 16px !important;
}

body.pdss-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px !important;
    line-height: 1.5;
    color: var(--pdss-text);
    background-color: var(--pdss-bg);
    /* Titik-titik (kiri atas) + lengkungan (kanan atas & kiri bawah) */
    background-image:
        radial-gradient(rgba(26, 43, 75, .14) 1.1px, transparent 1.2px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cpath d='M520-40c120 80 220 200 240 340s-40 280-160 360' fill='none' stroke='%239aa3b5' stroke-width='1.2' opacity='.35'/%3E%3Cpath d='M580-20c110 90 190 210 205 340s-50 260-170 340' fill='none' stroke='%239aa3b5' stroke-width='1' opacity='.28'/%3E%3Cpath d='M640 0c100 100 170 220 180 340s-60 240-175 320' fill='none' stroke='%239aa3b5' stroke-width='1' opacity='.22'/%3E%3Cpath d='M-40 420c90 40 180 70 280 60s200-60 300-40' fill='none' stroke='%239aa3b5' stroke-width='1.1' opacity='.3'/%3E%3Cpath d='M-20 480c100 35 190 55 290 40s210-70 320-45' fill='none' stroke='%239aa3b5' stroke-width='1' opacity='.22'/%3E%3C/svg%3E");
    background-size:
        18px 18px,
        920px 720px;
    background-position:
        left top,
        right -80px top -60px;
    background-repeat:
        repeat,
        no-repeat;
    display: flex;
    flex-direction: column;
}

/* lengkungan tambahan kiri bawah */
.pdss-auth-body::before {
    content: "";
    position: fixed;
    left: -120px;
    bottom: -80px;
    width: 520px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cpath d='M-20 80c90 20 180 70 240 150s70 190 20 260' fill='none' stroke='%239aa3b5' stroke-width='1.2' opacity='.32'/%3E%3Cpath d='M0 40c100 30 190 90 250 180s60 200 0 280' fill='none' stroke='%239aa3b5' stroke-width='1' opacity='.22'/%3E%3C/svg%3E") left bottom / contain no-repeat;
}

/* Matikan chaser sticky Kallyas di halaman login */
.pdss-auth-body .chaser,
.chaser {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pdss-auth-topnav,
.pdss-auth-main,
.pdss-auth-footer {
    position: relative;
    z-index: 1;
}

/* Header mockup — tidak sticky / tidak chaser */
.pdss-auth-topnav {
    position: relative;
    z-index: 30;
    background: linear-gradient(180deg, #dce7f5 0%, #6b8ab8 42%, #1a2b4b 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
}

.pdss-auth-topnav__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: .55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pdss-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    padding: .15rem 0;
}

.pdss-auth-brand__img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 200px;
    object-fit: contain;
}

.pdss-auth-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pdss-auth-nav > a,
.pdss-auth-nav__dropbtn {
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .5rem .85rem;
    border-radius: .35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.pdss-auth-nav > a:hover,
.pdss-auth-nav__dropbtn:hover {
    background: rgba(255, 255, 255, .12);
}

.pdss-auth-nav > a.is-login {
    background: var(--pdss-orange);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.pdss-auth-nav > a.is-login:hover {
    background: #e08e00;
}

.pdss-auth-nav__dropdown {
    position: relative;
}

.pdss-auth-nav__dropmenu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    min-width: 13rem;
    background: #fff;
    border-radius: .45rem;
    box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .18);
    padding: .35rem 0;
    z-index: 40;
}

.pdss-auth-nav__dropdown.is-open .pdss-auth-nav__dropmenu {
    display: block;
}

.pdss-auth-nav__dropmenu a {
    display: block;
    padding: .55rem .9rem;
    color: #1f2937;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.pdss-auth-nav__dropmenu a:hover {
    background: #f3f4f6;
    color: var(--pdss-blue);
}

.pdss-auth-kemenag {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.pdss-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem 2rem;
}

.pdss-auth-card {
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    background: var(--pdss-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12);
}

/* Left panel */
.pdss-auth-side {
    position: relative;
    background: linear-gradient(165deg, var(--pdss-navy) 0%, var(--pdss-navy-deep) 100%);
    color: #fff;
    padding: 2rem 1.6rem 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdss-auth-side__hero {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background:
        linear-gradient(to top, rgba(19, 34, 61, .92), rgba(19, 34, 61, .35) 55%, transparent),
        var(--pdss-side-image, none) center bottom / cover no-repeat;
    opacity: .55;
    pointer-events: none;
}

.pdss-auth-side__inner {
    position: relative;
    z-index: 1;
}

.pdss-auth-side__title {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: .65rem;
}

.pdss-auth-side__badge {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--pdss-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 .35rem 1rem rgba(47, 179, 68, .35);
}

.pdss-auth-side__badge svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.pdss-auth-side h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 800;
}

.pdss-auth-side > .pdss-auth-side__inner > p {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
}

.pdss-auth-contact {
    margin-top: auto;
}

.pdss-auth-contact h2,
.pdss-auth-help h2 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.pdss-auth-contact ul,
.pdss-auth-help ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.pdss-auth-contact li,
.pdss-auth-help li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    font-size: .95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .9);
}

.pdss-auth-contact a,
.pdss-auth-help a {
    color: #fff;
    text-decoration: none;
}

.pdss-auth-contact a:hover,
.pdss-auth-help a:hover {
    text-decoration: underline;
}

.pdss-ico {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(47, 179, 68, .2);
    color: #7ddea0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdss-ico svg {
    width: .95rem;
    height: .95rem;
    display: block;
}

.pdss-auth-help {
    margin-top: 1.25rem;
}

.pdss-auth-social {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.pdss-auth-social h2 {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.pdss-auth-social ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: .65rem;
}

.pdss-auth-social ul > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
}

.pdss-auth-social ul > li::marker {
    content: none;
}

.pdss-auth-social a {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}

.pdss-auth-social .pdss-ico {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.pdss-auth-social a:hover .pdss-ico {
    background: rgba(47, 179, 68, .35);
    color: #fff;
    transform: translateY(-1px);
}

/* Right form */
.pdss-auth-form {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.pdss-auth-form__head {
    margin-bottom: 1.1rem;
    text-align: center;
}

.pdss-auth-form__head-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .65rem;
    background: rgba(47, 179, 68, .12);
    color: var(--pdss-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .65rem;
}

.pdss-auth-form__head-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

.pdss-auth-form__head h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
}

.pdss-auth-form__head p {
    margin: .3rem 0 0;
    color: var(--pdss-muted);
    font-size: 1rem;
}

.pdss-auth-form .alert {
    font-size: .95rem;
    border-radius: .55rem;
    padding: .7rem .85rem;
    margin-bottom: .9rem;
}

.pdss-auth-form .alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.pdss-auth-form .alert-danger,
.pdss-auth-form .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pdss-auth-form .alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.pdss-auth-form .form-group,
.pdss-auth-form .mb-3,
.pdss-auth-form .field-loginform-username,
.pdss-auth-form .field-loginform-password,
.pdss-auth-form .field-loginform-verifycode {
    margin-bottom: .95rem;
}

.pdss-auth-form label,
.pdss-auth-form .control-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: .4rem;
}

.pdss-input {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: .55rem;
    background: #fff;
    overflow: hidden;
}

.pdss-input:focus-within {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 .15rem rgba(37, 99, 235, .15);
}

.pdss-input__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    color: #9ca3af;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.pdss-input__icon svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.pdss-input .form-control {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: 2.85rem;
    padding: .5rem .85rem;
    width: 100%;
    font-size: 1rem;
}

.pdss-input__action {
    display: inline-flex;
    align-items: center;
    padding: 0 .85rem;
    color: var(--pdss-muted);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
}

.pdss-captcha {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: .5rem;
    align-items: center;
}

.pdss-captcha img {
    height: 52px;
    width: auto;
    border: 1px solid #d1d5db;
    border-radius: .45rem;
    cursor: pointer;
    background: #fff;
}

.pdss-captcha__refresh {
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid #d1d5db;
    border-radius: .45rem;
    background: #fff;
    color: var(--pdss-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pdss-captcha__refresh svg {
    width: 1.05rem;
    height: 1.05rem;
}

.pdss-captcha .form-control {
    height: 2.75rem;
    border: 1px solid #d1d5db;
    border-radius: .45rem;
    padding: .45rem .75rem;
    width: 100%;
    font-size: 1rem;
}

.pdss-auth-form .help-block,
.pdss-auth-form .invalid-feedback {
    color: #d63939;
    font-size: .9rem;
    margin-top: .25rem;
}

.pdss-auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin: .25rem 0 1rem;
    font-size: 1rem;
}

.pdss-auth-meta label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    font-weight: 500;
    color: var(--pdss-muted);
    cursor: pointer;
}

.pdss-auth-meta a {
    color: var(--pdss-blue);
    font-weight: 600;
    text-decoration: none;
}

.pdss-auth-meta a:hover {
    text-decoration: underline;
}

.pdss-btn-login {
    width: 100%;
    border: 0;
    border-radius: .55rem;
    background: var(--pdss-blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .85rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.pdss-btn-login:hover {
    background: var(--pdss-blue-dark);
}

.pdss-btn-login svg {
    width: 1.05rem;
    height: 1.05rem;
}

.pdss-auth-extra {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pdss-auth-extra a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .85rem;
    border-radius: .45rem;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.pdss-auth-extra .btn-register {
    background: rgba(47, 179, 68, .12);
    color: #157a40;
}

.pdss-auth-extra .btn-guide {
    background: #eff6ff;
    color: var(--pdss-blue);
}

.pdss-auth-footer {
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

.pdss-auth-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: .75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .95rem;
    color: var(--pdss-muted);
}

.pdss-auth-footer__left {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.pdss-auth-footer__left img {
    border-radius: 999px;
}

@media (max-width: 900px) {
    .pdss-auth-card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .pdss-auth-side {
        min-height: auto;
        padding-bottom: 1.5rem;
    }

    .pdss-auth-side__hero {
        display: none;
    }

    .pdss-auth-help {
        margin-bottom: 0;
    }

    .pdss-auth-form {
        padding: 1.5rem 1.25rem;
    }

    .pdss-auth-brand__img {
        height: 44px;
        max-width: 160px;
    }

    .pdss-auth-nav > a:not(.is-login),
    .pdss-auth-nav__dropbtn {
        display: none;
    }

    .pdss-captcha {
        grid-template-columns: 1fr auto;
    }

    .pdss-captcha img {
        grid-column: 1 / 2;
    }

    .pdss-captcha__refresh {
        grid-column: 2 / 3;
    }

    .pdss-captcha .form-control,
    .pdss-captcha .field-loginform-verifycode,
    .pdss-captcha > div:last-child {
        grid-column: 1 / -1;
    }
}

/* ---------- Public guest pages (registrasi / lupa-password) ---------- */
.pdss-auth-public {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
}

.pdss-auth-public__card {
    width: 100%;
    max-width: 920px;
    background: #fff;
    color: #1e293b;
    border-radius: 1rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12);
    padding: 1.5rem 1.75rem 1.75rem;
}

.pdss-auth-public__title {
    margin: 0 0 1.1rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.pdss-auth-public__card .form-group {
    margin-bottom: 1rem;
}

.pdss-auth-public__card .form-control {
    height: auto;
    min-height: 2.6rem;
    border-radius: .45rem;
}

.pdss-auth-public__card .btn {
    border-radius: .45rem;
}

.pdss-auth-public__card .alert {
    border-radius: .55rem;
}

.pdss-auth-public__card .table {
    background: #fff;
}

@media (max-width: 767px) {
    .pdss-auth-public__card {
        padding: 1.15rem 1rem 1.35rem;
        border-radius: .85rem;
    }
}
