/* ============================================================
   APP-SKAKM4T
   LOGIN CSS
   ============================================================

   BASELINE:
   - Tampilan desktop/laptop dipertahankan
   - Tampilan HP diperbaiki khusus mobile
   - Tidak mengubah PHP
   - Tidak mengubah database
   - Tidak mengubah login logic
   - Tidak mengubah struktur login.php
   - Mencegah horizontal scroll
   - INFO TERKINI tetap berjalan
   - Pengumuman hanya judul
   ============================================================ */


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;

    overflow-x: hidden;
}


body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;

    background: #ffffff;

    color: #ffffff;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img,
svg,
video,
canvas {
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    width: 100%;
    min-width: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    overflow-x: hidden;
}


/* ============================================================
   TOP BAR
   DESKTOP BASELINE
   ============================================================ */

.login-topbar {
    position: relative;

    width: 100%;
    height: 66px;
    min-height: 66px;

    display: flex;
    align-items: stretch;

    background: #28d000;

    border-bottom:
        2px solid #ffffff;

    overflow: hidden;

    z-index: 20;
}


/* ============================================================
   INFO TERKINI
   KIRI
   ============================================================ */

.info-news {
    position: relative;

    flex: 0 0 218px;

    width: 218px;
    min-width: 218px;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding:
        0 14px;

    background: #050505;

    color: #ffffff;

    border-right:
        2px solid #ffffff;

    z-index: 30;

    white-space: nowrap;

    overflow: hidden;
}


.news-icon {
    flex: 0 0 auto;

    width: auto;

    font-size: 24px;

    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.news-title {
    flex: 0 0 auto;

    font-size: 19px;

    font-weight: 800;

    letter-spacing: .5px;

    white-space: nowrap;
}


/* ============================================================
   AREA TEKS BERJALAN
   ============================================================ */

.welcome-text {
    position: relative;

    flex: 1 1 auto;

    width:
        calc(100% - 218px);

    min-width: 0;

    height: 100%;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #28d000;

    color: #fff600;

    z-index: 10;

    white-space: nowrap;
}


/* ============================================================
   TICKER
   ============================================================ */

.news-ticker {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;

    display: flex;
    align-items: center;

    overflow: hidden;

    white-space: nowrap;
}


/*
 * PENTING:
 *
 * Jangan beri:
 * max-width: 100%;
 * width: 100%;
 *
 * pada .news-ticker-track.
 *
 * Track harus mengikuti panjang isi
 * agar animasi dapat berjalan.
 */

.news-ticker-track {
    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    min-width: max-content;

    height: 100%;

    white-space: nowrap;

    will-change: transform;

    animation:
        loginTicker
        35s
        linear
        infinite;
}


/* ============================================================
   ITEM TICKER
   ============================================================ */

.news-ticker-item {
    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    min-width: max-content;

    height: 100%;

    padding:
        0 0 0 55px;

    margin-right: 220px;

    color: #fff600;

    font-size: 17px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .2s ease,
        opacity .2s ease;
}


.news-ticker-item:hover {
    color: #ffffff;

    opacity: .9;

    text-decoration: underline;
}


.news-title-text {
    display: inline-block;

    white-space: nowrap;
}


/* ============================================================
   SELAMAT DATANG
   ============================================================ */

.news-item {
    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    min-width: max-content;

    height: 100%;

    padding:
        0 0 0 55px;

    margin-right: 220px;

    color: #fff600;

    font-size: 17px;

    font-weight: 700;

    line-height: 1;

    white-space: nowrap;
}


.news-date {
    display: inline-block;

    white-space: nowrap;
}


/* ============================================================
   SPACER AKHIR
   ============================================================ */

.ticker-end-spacer {
    width: 420px;

    min-width: 420px;

    margin-right: 0;

    padding: 0;

    visibility: hidden;
}


/* ============================================================
   ANIMASI TICKER
   ============================================================ */

@keyframes loginTicker {

    0% {
        transform:
            translateX(100vw);
    }

    100% {
        transform:
            translateX(-100%);
    }

}


/* ============================================================
   MAIN LOGIN
   ============================================================ */

.login-main {
    position: relative;

    width: 100%;

    flex: 1 1 auto;

    min-height: 570px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        70px 25px;

    background-image:
        url("../images/gedung_sbsn.png");

    background-size: cover;

    background-position:
        center center;

    background-repeat: no-repeat;

    overflow: hidden;
}

.login-status-outside {
    position: absolute !important;

    left: 50%;
    bottom: 18px;

    transform: translateX(-50%);

    width: min(
        805px,
        calc(100% - 32px)
    );

    box-sizing: border-box;

    text-align: center;

    z-index: 30;
}


/* ============================================================
   OVERLAY
   ============================================================ */

.login-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0, 0, 0, .18);

    pointer-events: none;

    z-index: 1;
}


/* ============================================================
   LOGIN CARD
   DESKTOP BASELINE
   ============================================================ */

.login-card {
    position: relative;

    z-index: 5;

    width:
        min(748px, 92vw);

    padding:
        30px 30px 27px;

    background:
        rgba(17, 66, 9, .94);

    border-radius: 17px;

    box-shadow:
        0 0 15px
        rgba(72, 255, 0, .65),

        0 0 30px
        rgba(72, 255, 0, .35);

    border:
        1px solid
        rgba(112, 255, 60, .35);

    overflow: hidden;
}


/* ============================================================
   LOGIN HEADING
   ============================================================ */

.login-heading {
    width: 100%;

    text-align: center;

    margin-bottom: 27px;
}


.login-title {
    font-size: 29px;

    font-weight: 400;

    letter-spacing: 4px;

    line-height: 1.25;

    color: #ffffff;

    text-transform: uppercase;
}


.login-school {
    margin-top: 2px;

    font-size: 29px;

    font-weight: 400;

    letter-spacing: 4px;

    line-height: 1.25;

    color: #ffffff;

    text-transform: uppercase;
}


/* ============================================================
   LOGIN FORM
   ============================================================ */

.login-form {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* ============================================================
   INPUT GROUP
   ============================================================ */

.login-input-group {
    position: relative;

    width: 100%;

    height: 54px;

    display: flex;

    margin-bottom: 13px;

    overflow: hidden;
}


/* ============================================================
   INPUT
   ============================================================ */

.login-input {
    width: 100%;
    height: 54px;

    padding:
        0 70px 0 20px;

    border:
        1px solid #dddddd;

    border-radius: 0;

    outline: none;

    background: #f8f8f8;

    color: #111111;

    font-size: 17px;

    line-height: 1;

    -webkit-appearance: none;
    appearance: none;
}


.login-input::placeholder {
    color: #888888;

    opacity: 1;
}


.login-input:focus {
    border-color: #3b9ed0;

    box-shadow:
        inset 0 0 0 1px
        rgba(59, 158, 208, .25);
}


/* ============================================================
   INPUT ICON
   ============================================================ */

.input-icon {
    position: absolute;

    top: 0;
    right: 0;

    width: 62px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border-left:
        1px solid #dddddd;

    color: #555555;

    font-size: 24px;

    z-index: 3;
}


/* ============================================================
   TOGGLE PASSWORD
   ============================================================ */

.toggle-password {
    border: 0;

    background: #ffffff;

    color: #555555;

    cursor: pointer;
}


.toggle-password:hover {
    background: #f2f2f2;
}


/* ============================================================
   MESSAGE / ERROR
   ============================================================ */

.login-message {
    width: 100%;

    margin:
        10px 0;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.5;

    text-align: center;
}


.login-message:not(:empty) {
    padding:
        8px 12px;

    border-radius: 8px;

    background:
        rgba(180, 0, 0, .35);

    color: #ffffff;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-button {
    width: 100%;

    min-height: 56px;

    margin-top: 8px;

    padding:
        12px 20px;

    border: 0;

    border-radius: 4px;

    background: #4aa1cf;

    color: #ffffff;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 22px;

    font-weight: 800;

    text-align: center;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


.login-button:hover {
    background: #3695c7;

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, .20);
}


.login-button:active {
    transform:
        translateY(1px);
}


.login-button:disabled {
    opacity: .70;

    cursor: wait;

    transform: none;
}


/* ============================================================
   LOGIN LOADING
   ============================================================ */

.login-loading {
    display: none;
}


.login-button.loading
.login-button-text {
    display: none;
}


.login-button.loading
.login-loading {
    display: inline;
}


/* ============================================================
   LOGIN LINKS
   ============================================================ */

.login-links {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 16px;
}


.login-links a {
    color: #ffffff;

    font-size: 18px;

    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease;
}


.login-links a:hover {
    color: #d7ffd0;

    text-decoration: underline;
}


/* ============================================================
   BACK BUTTON
   ============================================================ */

.login-back {
    text-align: left;
}


/* ============================================================
   FORGOT PASSWORD
   ============================================================ */

.login-forgot {
    text-align: right;
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    width: 100%;

    padding:
        24px 30px;

    background:
        #173f68;

    color: #ffffff;

    text-align: left;
}


/* ============================================================
   FOOTER INNER
   ============================================================ */

.login-footer-inner {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ============================================================
   FOOTER BRAND
   ============================================================ */

.login-footer-brand {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.login-footer-brand strong {
    font-size: 21px;

    font-weight: 800;
}


.login-footer-brand span {
    font-size: 15px;

    line-height: 1.5;

    color: #cbd8e8;
}


/* ============================================================
   FOOTER COPYRIGHT
   ============================================================ */

.login-footer-copy {
    font-size: 15px;

    color: #d7e0eb;

    white-space: nowrap;

    flex-shrink: 0;
}


/* ============================================================
   GENERIC COPYRIGHT
   ============================================================ */

.copyright {
    margin-top: 25px;

    color:
        rgba(255, 255, 255, .82);

    text-align: center;

    font-size: 14px;

    line-height: 1.5;
}


/* ============================================================
   SECURE NOTE
   ============================================================ */

.secure-note {
    margin:
        12px 0 0;

    color:
        rgba(255, 255, 255, .90);

    text-align: center;

    font-size: 15px;

    line-height: 1.5;
}


/* ============================================================
   LEGACY FIELD SUPPORT
   ============================================================ */

.field {
    width: 100%;

    margin-bottom: 16px;
}


.field label {
    display: block;

    margin-bottom: 7px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;
}


.input-wrap {
    position: relative;

    width: 100%;

    display: flex;

    align-items: stretch;
}


.input-wrap input {
    flex: 1;

    min-width: 0;

    width: 100%;

    min-height: 54px;

    padding:
        12px 15px;

    border: 0;

    outline: none;

    font-size: 17px;
}


.input-wrap .toggle-password {
    flex:
        0 0 55px;

    border: 0;

    cursor: pointer;
}


/* ============================================================
   LEGACY SUBMIT
   ============================================================ */

.submit {
    width: 100%;

    min-height: 55px;

    border: 0;

    border-radius: 4px;

    background: #4aa1cf;

    color: #ffffff;

    font-size: 20px;

    font-weight: 800;

    cursor: pointer;
}


/* ============================================================
   FIX TICKER DESKTOP
   Struktur aktual login.php menggunakan .news-track
   ============================================================ */

.login-topbar .news-track {

    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    min-width: max-content;

    height: 100%;

    white-space: nowrap;

    will-change: transform;

    animation:
        loginTicker
        35s
        linear
        infinite;
}


.login-topbar .login-ticker-welcome {

    display: inline-flex;

    align-items: center;

    flex: 0 0 auto;

    width: max-content;

    min-width: max-content;

    height: 100%;

    white-space: nowrap;

}


.login-topbar .login-ticker-separator {

    flex: 0 0 auto;

    margin-left: 10px;
    margin-right: 10px;

    white-space: nowrap;
}


.login-topbar .login-ticker-announcement {

    flex: 0 0 auto;

    width: max-content;

    white-space: nowrap;

    color: #fff600;

    text-decoration: none;

}


.login-topbar .login-ticker-loop-space {

    display: inline-block;

    flex: 0 0 auto;

    width: 420px;

    min-width: 420px;

    height: 1px;

}


/* ============================================================
   LAPTOP / DESKTOP
   HANYA PENYESUAIAN RINGAN
   ============================================================ */

@media (max-width: 1200px) {

    .login-topbar {
        height: 64px;
        min-height: 64px;
    }


    .info-news {
        flex-basis: 216px;

        width: 216px;
        min-width: 216px;
    }


    .news-icon {
        font-size: 23px;
    }


    .news-title {
        font-size: 19px;
    }


    .news-ticker-track {
        animation-duration: 32s;
    }


    .news-ticker-item,
    .news-item {
        font-size: 17px;

        margin-right: 200px;
    }


    .login-main {
        min-height:
            calc(100vh - 64px - 145px);

        padding:
            40px 20px;
    }

}


/* ============================================================
   TABLET / LAPTOP KECIL
   ============================================================ */

@media (max-width: 900px) {

    .login-topbar {
        height: 60px;

        min-height: 60px;
    }


    .info-news {
        flex:
            0 0 180px;

        width: 180px;
        min-width: 180px;

        height: 60px;

        padding:
            7px 10px;

        gap: 7px;
    }


    .news-icon {
        font-size: 21px;
    }


    .news-title {
        font-size: 16px;
    }


    .welcome-text {
        height: 60px;
    }


    .news-ticker-track {
        height: 60px;

        animation-duration: 30s;
    }


    .news-ticker-item,
    .news-item {
        font-size: 15px;

        margin-right: 170px;

        padding-left: 60px;
    }


    .login-main {
        min-height:
            calc(100vh - 60px - 135px);

        padding:
            40px 20px;
    }


    .login-card {
        width:
            min(700px, 94vw);

        padding:
            31px 30px 28px;
    }


    .login-title,
    .login-school {
        font-size: 26px;
    }


    .login-footer {
        padding:
            28px 30px;
    }


    .login-footer-inner {
        gap: 24px;
    }


    .login-footer-brand strong {
        font-size: 20px;
    }


    .login-footer-brand span {
        font-size: 14px;
    }


    .login-footer-copy {
        font-size: 14px;
    }

}


/* ============================================================
   HP / MOBILE
   ============================================================

   PENTING:
   Mulai titik ini khusus HP.

   Desktop di atas TIDAK disentuh lagi.
   ============================================================ */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;

        min-width: 0;
        max-width: 100%;

        overflow-x: hidden !important;
    }


    /* ========================================================
       TOP BAR HP
       ======================================================== */

    .login-topbar {
        width: 100%;

        height: auto;

        min-height: 0;

        display: flex;

        flex-direction: column;

        overflow: hidden;
    }


    /* ========================================================
       LABEL INFO TERKINI
       ======================================================== */

    .info-news {
        width: 100%;

        min-width: 0;

        height: 45px;

        min-height: 45px;

        flex:
            0 0 45px;

        padding:
            0 10px;

        gap: 7px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, .75);

        justify-content: center;
    }


    .news-icon {
        font-size: 20px;
    }


    .news-title {
        font-size: 15px;

        letter-spacing: .3px;
    }


    /* ========================================================
       TICKER HP
       ======================================================== */

    .welcome-text {
        width: 100%;

        min-width: 0;

        height: 40px;

        min-height: 40px;

        flex:
            0 0 40px;

        display: flex;

        align-items: center;

        overflow: hidden;

        padding: 0;

        background: #28d000;

        white-space: nowrap;
    }


    .news-ticker {
        width: 100%;

        height: 40px;

        min-width: 0;

        overflow: hidden;
    }


    .news-ticker-track {
        height: 40px;

        width: max-content;

        min-width: max-content;

        animation:
            loginTicker
            25s
            linear
            infinite;
    }


    .news-ticker-item,
    .news-item {
        height: 40px;

        min-height: 40px;

        margin-right: 125px;

        padding-left: 35px;

        font-size: 13px;

        line-height: 40px;

        font-weight: 700;
    }


    .ticker-end-spacer {
        min-width: 260px;

        width: 260px;
    }


    /* ========================================================
       MAIN HP
       ======================================================== */

    .login-main {
        width: 100%;

        min-width: 0;

        min-height: 0;

        flex:
            1 0 auto;

        display: flex;

        align-items: center;

        justify-content: center;

        padding:
            38px 12px;

        background-position:
            center center;

        overflow: hidden;
    }


    /* ========================================================
       CARD HP
       ======================================================== */

    .login-card {
        width: 100%;

        max-width: 480px;

        min-width: 0;

        padding:
            28px 18px 24px;

        margin: 0;

        border-radius: 15px;

        box-shadow:
            0 0 14px
            rgba(119, 255, 0, .65),

            0 0 28px
            rgba(91, 255, 0, .30),

            0 15px 35px
            rgba(0, 0, 0, .35);

        overflow: hidden;
    }


    /* ========================================================
       HEADING HP
       ======================================================== */

    .login-heading {
        width: 100%;

        margin-bottom: 22px;

        text-align: center;
    }


    .login-title {
        font-size: 23px;

        letter-spacing: 2.8px;

        line-height: 1.3;
    }


    .login-school {
        margin-top: 4px;

        font-size: 23px;

        letter-spacing: 2.8px;

        line-height: 1.3;
    }


    /* ========================================================
       INPUT HP
       ======================================================== */

    .login-input-group {
        width: 100%;

        height: 50px;

        min-height: 50px;

        margin-bottom: 12px;
    }


    .login-input {
        width: 100%;

        height: 50px;

        min-height: 50px;

        padding:
            0 56px 0 14px;

        font-size: 16px;
    }


    .input-icon {
        width: 50px;

        height: 50px;

        min-height: 50px;

        font-size: 21px;
    }


    /* ========================================================
       MESSAGE HP
       ======================================================== */

    .login-message {
        margin:
            10px 0;

        font-size: 14px;

        line-height: 1.45;
    }


    /* ========================================================
       BUTTON HP
       ======================================================== */

    .login-button {
        width: 100%;

        height: 50px;

        min-height: 50px;

        margin-top: 7px;

        padding:
            10px 15px;

        font-size: 17px;

        border-radius: 4px;
    }


    /* ========================================================
       LINKS HP
       ======================================================== */

    .login-links {
        width: 100%;

        margin-top: 15px;

        gap: 12px;
    }


    .login-links a {
        font-size: 15px;

        line-height: 1.3;

        white-space: nowrap;
    }


    /* ========================================================
       FOOTER HP
       ======================================================== */

    .login-footer {
        width: 100%;

        min-width: 0;

        padding:
            22px 16px;

        text-align: left;
    }


    .login-footer-inner {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        gap: 12px;
    }


    .login-footer-brand {
        width: 100%;

        gap: 4px;
    }


    .login-footer-brand strong {
        font-size: 19px;
    }


    .login-footer-brand span {
        font-size: 13px;

        line-height: 1.5;
    }


    .login-footer-copy {
        width: 100%;

        font-size: 12px;

        line-height: 1.5;

        white-space: normal;
    }


    .secure-note {
        font-size: 13px;
    }


    .copyright {
        font-size: 12px;
    }

}


/* ============================================================
   HP KECIL
   ============================================================ */

@media (max-width: 420px) {

    .info-news {
        height: 43px;

        min-height: 43px;

        flex-basis: 43px;

        padding:
            0 8px;

        gap: 6px;
    }


    .news-icon {
        font-size: 18px;
    }


    .news-title {
        font-size: 13px;

        letter-spacing: .2px;
    }


    .welcome-text {
        height: 39px;

        min-height: 39px;

        flex-basis: 39px;
    }


    .news-ticker,
    .news-ticker-track {
        height: 39px;
    }


    .news-ticker-item,
    .news-item {
        height: 39px;

        min-height: 39px;

        line-height: 39px;

        font-size: 12px;

        margin-right: 110px;

        padding-left: 28px;
    }


    .ticker-end-spacer {
        width: 220px;

        min-width: 220px;
    }


    .login-main {
        padding:
            30px 10px;
    }


    .login-card {
        width: 100%;

        max-width: 390px;

        padding:
            25px 15px 21px;

        border-radius: 14px;
    }


    .login-heading {
        margin-bottom: 20px;
    }


    .login-title,
    .login-school {
        font-size: 21px;

        letter-spacing: 2.4px;
    }


    .login-input-group {
        height: 48px;

        min-height: 48px;

        margin-bottom: 11px;
    }


    .login-input {
        height: 48px;

        min-height: 48px;

        padding:
            0 51px 0 13px;

        font-size: 15px;
    }


    .input-icon {
        width: 48px;

        height: 48px;

        font-size: 20px;
    }


    .login-button {
        height: 48px;

        min-height: 48px;

        font-size: 16px;
    }


    .login-links {
        margin-top: 14px;

        gap: 10px;
    }


    .login-links a {
        font-size: 14px;
    }


    .login-footer {
        padding:
            20px 14px;
    }


    .login-footer-brand strong {
        font-size: 18px;
    }


    .login-footer-brand span {
        font-size: 12px;
    }


    .login-footer-copy {
        font-size: 11px;
    }

}


/* ============================================================
   HP SANGAT KECIL
   ============================================================ */

@media (max-width: 360px) {

    .info-news {
        height: 41px;

        min-height: 41px;

        flex-basis: 41px;
    }


    .news-icon {
        font-size: 17px;
    }


    .news-title {
        font-size: 12px;
    }


    .welcome-text {
        height: 38px;

        min-height: 38px;

        flex-basis: 38px;
    }


    .news-ticker,
    .news-ticker-track {
        height: 38px;
    }


    .news-ticker-item,
    .news-item {
        height: 38px;

        min-height: 38px;

        line-height: 38px;

        font-size: 11px;

        margin-right: 95px;

        padding-left: 22px;
    }


    .login-main {
        padding:
            25px 8px;
    }


    .login-card {
        width: 100%;

        padding:
            22px 13px 19px;

        border-radius: 13px;
    }


    .login-title,
    .login-school {
        font-size: 19px;

        letter-spacing: 2px;
    }


    .login-input-group {
        height: 46px;

        min-height: 46px;
    }


    .login-input {
        height: 46px;

        min-height: 46px;

        padding:
            0 48px 0 12px;

        font-size: 14px;
    }


    .input-icon {
        width: 46px;

        height: 46px;

        font-size: 19px;
    }


    .login-button {
        height: 46px;

        min-height: 46px;

        font-size: 15px;
    }


    .login-links a {
        font-size: 13px;
    }


    .login-footer {
        padding:
            18px 13px;
    }

}


/* ============================================================
   MOBILE LANDSCAPE
   ============================================================ */

@media (max-height: 600px)
and (orientation: landscape) {

    .login-topbar {
        height: 52px;

        min-height: 52px;

        flex-direction: row;
    }


    .info-news {
        flex:
            0 0 170px;

        width: 170px;

        min-width: 170px;

        height: 52px;

        min-height: 52px;

        border-right:
            2px solid #ffffff;

        border-bottom: 0;

        padding:
            5px 10px;
    }


    .news-icon {
        font-size: 19px;
    }


    .news-title {
        font-size: 14px;
    }


    .welcome-text {
        width:
            calc(100% - 170px);

        height: 52px;

        min-height: 52px;
    }


    .news-ticker,
    .news-ticker-track {
        height: 52px;
    }


    .news-ticker-item,
    .news-item {
        height: 52px;

        min-height: 52px;

        line-height: 52px;

        font-size: 12px;

        margin-right: 110px;

        padding-left: 35px;
    }


    .login-main {
        min-height: 0;

        padding:
            22px 15px;
    }


    .login-card {
        width:
            min(650px, 92vw);

        padding:
            20px 24px;
    }


    .login-heading {
        margin-bottom: 15px;
    }


    .login-title,
    .login-school {
        font-size: 20px;

        letter-spacing: 2.5px;
    }


    .login-input-group {
        height: 42px;

        min-height: 42px;

        margin-bottom: 8px;
    }


    .login-input {
        height: 42px;

        min-height: 42px;

        font-size: 14px;
    }


    .input-icon {
        width: 42px;

        height: 42px;

        font-size: 18px;
    }


    .login-button {
        height: 42px;

        min-height: 42px;

        font-size: 15px;
    }


    .login-links {
        margin-top: 10px;
    }


    .login-links a {
        font-size: 13px;
    }


    .login-footer {
        padding:
            16px 20px;
    }

}


/* ============================================================
   EXTRA SAFETY
   ============================================================ */

body,
.login-page,
.login-topbar,
.login-main,
.login-footer,
.login-card,
.info-news,
.welcome-text,
.news-ticker {
    max-width: 100%;
}


.login-topbar,
.login-main,
.login-footer {
    min-width: 0;
}


/*
 * JANGAN memasukkan:
 *
 * .news-ticker-track
 * .news-ticker-item
 * .news-item
 *
 * ke dalam aturan max-width: 100%.
 *
 * Track harus boleh lebih panjang dari layar
 * supaya animasi teks berjalan dapat bekerja.
 */


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition: none !important;
    }


    .news-ticker-track {
        animation: none !important;

        transform:
            translateX(0);
    }

}

/* ============================================================
   FINAL FIX TICKER HP
   HANYA UNTUK HP
   ============================================================ */

@media screen and (max-width: 600px) {

    /*
     * Track yang BENAR-BENAR dipakai login.php
     */
    .login-topbar .news-track {

        display: inline-flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: max-content !important;

        min-width: max-content !important;

        max-width: none !important;

        height: 38px !important;

        margin: 0 !important;

        padding: 0 !important;

        white-space: nowrap !important;

        transform: translateX(100vw);

        animation:
            loginTickerMobile
            28s
            linear
            infinite !important;

        will-change: transform;
    }


    /*
     * Semua isi track tetap satu baris.
     */
    .login-topbar .news-item,
    .login-topbar .news-ticker-item {

        display: inline-flex !important;

        align-items: center !important;

        flex: 0 0 auto !important;

        width: max-content !important;

        min-width: max-content !important;

        max-width: none !important;

        height: 38px !important;

        margin-top: 0 !important;

        margin-bottom: 0 !important;

        padding-top: 0 !important;

        padding-bottom: 0 !important;

        white-space: nowrap !important;

        overflow: visible !important;

        text-overflow: clip !important;

        line-height: 38px !important;
    }


    /*
     * Jarak setelah SELAMAT DATANG
     */
    .login-topbar .news-item {

        padding-left: 30px !important;

        padding-right: 0 !important;

        margin-right: 180px !important;

        font-size: 12px !important;
    }


    /*
     * Jarak antar judul pengumuman
     */
    .login-topbar .news-ticker-item {

        padding-left: 30px !important;

        padding-right: 0 !important;

        margin-right: 220px !important;

        font-size: 12px !important;

        color: #fff600 !important;

        text-decoration: none !important;
    }


    .login-topbar .news-ticker-item:hover {

        color: #ffffff !important;

        text-decoration: underline !important;
    }


    /*
     * Judul pengumuman jangan dipotong.
     */
    .login-topbar .news-title-text {

        display: inline-block !important;

        width: max-content !important;

        max-width: none !important;

        overflow: visible !important;

        white-space: nowrap !important;

        text-overflow: clip !important;
    }


    /*
     * Tanggal dan jam tetap satu baris.
     */
    .login-topbar .news-date {

        flex: 0 0 auto !important;

        width: max-content !important;

        white-space: nowrap !important;
    }


    .login-topbar .news-separator {

        flex: 0 0 auto !important;

        white-space: nowrap !important;

        margin-left: 8px !important;

        margin-right: 8px !important;
    }


    /*
     * Spacer akhir diperbesar.
     *
     * Ini yang membuat:
     *
     * PENGUMUMAN TERAKHIR
     *          ↓
     *      ruang kosong
     *          ↓
     * SELAMAT DATANG kembali
     *
     * tidak langsung berdempetan.
     */
    .login-topbar .ticker-end-spacer {

        flex: 0 0 auto !important;

        width: 320px !important;

        min-width: 320px !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;

        visibility: hidden !important;
    }


    /*
     * Area ticker HP tetap memotong isi yang keluar
     * tanpa membuat halaman melebar.
     */
    .login-topbar .welcome-text {

        width: 100% !important;

        min-width: 0 !important;

        height: 38px !important;

        min-height: 38px !important;

        flex: 0 0 38px !important;

        display: flex !important;

        align-items: center !important;

        padding: 0 !important;

        overflow: hidden !important;

        white-space: nowrap !important;
    }


    .login-topbar .news-ticker {

        width: 100% !important;

        min-width: 0 !important;

        height: 38px !important;

        display: flex !important;

        align-items: center !important;

        overflow: hidden !important;

        white-space: nowrap !important;
    }


    /*
     * INFO TERKINI tetap statis.
     */
    .login-topbar .info-news {

        width: 100% !important;

        min-width: 0 !important;

        height: 40px !important;

        min-height: 40px !important;

        flex: 0 0 40px !important;

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        overflow: hidden !important;

        white-space: nowrap !important;

        border-right: 0 !important;

        border-bottom:
            1px solid
            rgba(255,255,255,.8) !important;
    }

}


/* ============================================================
   ANIMASI KHUSUS HP
   ============================================================ */

@keyframes loginTickerMobile {

    0% {

        transform:
            translate3d(100vw, 0, 0);

    }

    100% {

        transform:
            translate3d(-100%, 0, 0);

    }

}


/* ============================================================
   FINAL HP DEVICE FIT
   HANYA HP — DESKTOP TIDAK DISENTUH
   ============================================================ */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
    }


    body.login-page {
        width: 100%;
        min-height: 100vh;

        display: flex;
        flex-direction: column;

        overflow-x: hidden !important;
    }


    /* =========================
       TOP BAR
       ========================= */

    .login-topbar {
        width: 100%;

        flex: 0 0 auto;

        overflow: hidden;
    }


    /* =========================
       AREA LOGIN
       ========================= */

    .login-main {
        width: 100%;
        min-width: 0;
        min-height: 0;

        flex: 1 1 auto;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;

        padding:
            20px 10px 55px;

        overflow: hidden;
    }


    /* =========================
       CARD LOGIN
       ========================= */

    .login-card {
        width: 100%;
        max-width: 480px;
        min-width: 0;

        box-sizing: border-box;

        margin: 0 auto;

        padding:
            24px 16px 20px;

        border-radius: 14px;

        overflow: hidden;
    }


    /* =========================
       JUDUL
       ========================= */

    .login-heading {
        width: 100%;

        margin-bottom: 18px;

        text-align: center;
    }


    .login-title,
    .login-school {
        font-size: 21px;

        line-height: 1.3;

        letter-spacing: 2.2px;

        word-break: normal;
    }


    /* =========================
       INPUT
       ========================= */

    .login-input-group {
        width: 100%;

        height: 46px;
        min-height: 46px;

        margin-bottom: 10px;
    }


    .login-input {
        width: 100%;

        height: 46px;
        min-height: 46px;

        box-sizing: border-box;

        padding:
            0 50px 0 12px;

        font-size: 15px;
    }


    .input-icon {
        width: 46px;
        height: 46px;
        min-height: 46px;

        font-size: 19px;
    }


    /* =========================
       TOMBOL LOGIN
       ========================= */

    .login-button {
        width: 100%;

        height: 46px;
        min-height: 46px;

        margin-top: 5px;

        box-sizing: border-box;

        font-size: 16px;
    }


    /* =========================
       LINK
       ========================= */

    .login-links {
        width: 100%;

        margin-top: 12px;

        gap: 10px;
    }


    .login-links a {
        font-size: 14px;

        line-height: 1.3;
    }


    /* =========================
       STATUS DI BAWAH CARD
       ========================= */

    .login-status-outside {
        position: absolute !important;

        left: 50% !important;
        bottom: 12px !important;

        transform:
            translateX(-50%) !important;

        width:
            calc(100% - 20px) !important;

        max-width: 480px !important;

        box-sizing: border-box;

        text-align: center;

        font-size: 13px;

        z-index: 30;
    }


    /* =========================
       FOOTER
       ========================= */

    .login-footer {
        width: 100%;

        flex: 0 0 auto;

        box-sizing: border-box;

        padding:
            14px 12px;
    }


    .login-footer-inner {
        width: 100%;

        gap: 8px;

        text-align: center;
    }


    .login-footer-brand strong {
        font-size: 17px;
    }


    .login-footer-brand span {
        font-size: 11px;
    }


    .login-footer-copy {
        font-size: 10px;

        line-height: 1.35;
    }

}