/* AUTH PAGES STYLE: LOGIN SISWA & LOGIN GURU */
html, body {
    min-height: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body.auth-bg {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #fffbe9;
    background-image:
        linear-gradient(0deg, #e3caa5 1.5px, transparent 1.5px),
        linear-gradient(90deg, #e3caa5 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    background-position: center;
    min-height: 100vh;
    height: 100vh;
}

.navbar-custom {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 22px 38px 0 38px;
    box-sizing: border-box;
}

.btn-kembali {
    background: #258fff;
    color: #000;
    border: none;
    border-radius: 18px;
    padding: 8px 26px;
    font-size: 1.06rem;
    font-weight: 600;
    font-family: 'Montserrat', Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 12px #258fff33;
    transition: background .17s;
    text-decoration: none;
    display: inline-block;
}

.btn-kembali:hover {
    background: #1557a6;
    color: #fff;
}

/* fix login page wrapper agar fit tanpa scroll */
.login-page-wrap {
    min-height: calc(100vh - 60px); /* 60px = estimasi tinggi navbar */
    height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.login-card-color {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 3px 24px #0001;
    width: 100%;
    max-width: 420px;
    padding: 40px 28px 32px 28px;
    box-sizing: border-box;
}

.login-logo {
    text-align: center;
    margin-bottom: 16px;
}

.login-logo img {
    width: 140px;
    margin-bottom: 6px;
}

.login-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #111;
}

.login-form-multicolor .input-group-custom {
    margin-bottom: 22px;
}

.input-group-custom label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    font-size: 1.09rem;
    color: #222;
}

.input-nisn,
.input-nip {
    background: linear-gradient(120deg, #ffe145 85%, #fbd046 100%);
    border-radius: 14px;
    padding: 16px 16px 6px 16px;
    margin-bottom: 0;
}

.input-sandi {
    background: linear-gradient(120deg, #20b484 85%, #43cea2 100%);
    border-radius: 14px;
    padding: 16px 16px 6px 16px;
    margin-bottom: 0;
}

.input-nisn input,
.input-nip input,
.input-sandi input {
    border: none;
    background: transparent;
    font-size: 1.12rem;
    font-weight: 600;
    color: #111;
    outline: none;
    width: 100%;
    padding: 0;
}

.input-nisn input:focus,
.input-nip input:focus,
.input-sandi input:focus {
    outline: none;
    box-shadow: none;
}

.btn-login-custom {
    background: linear-gradient(120deg, #3f73d3 80%, #43a1e2 100%);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    padding: 13px 0;
    width: 100%;
    margin: 18px 0 5px 0;
    font-size: 1.15rem;
    box-shadow: 0 2px 7px #43a1e242;
    cursor: pointer;
    transition: background .17s;
}

.btn-login-custom:hover {
    background: linear-gradient(120deg, #43a1e2 80%, #3f73d3 100%);
}

.login-footer-link {
    text-align: center;
    margin-top: 18px;
    font-size: 1rem;
    color: #000;
    font-weight: 600;
}

.login-footer-link a {
    color: #f5515f;
    text-decoration: underline;
    font-weight: 700;
}

.input-nisn input::placeholder,
.input-nip input::placeholder,
.input-sandi input::placeholder {
    color: #444;
    opacity: 0.6;
}

/* Error message */
.invalid-feedback {
    color: #f5515f;
    font-size: .97rem;
    margin-top: 2px;
    margin-bottom: -2px;
    display: block;
}

/* REGISTER WRAP FIX fit layar tanpa scroll */
.register-page-wrap {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* Eliminate extra space caused by body padding/margin */
    margin: 0 !important;
    padding: 0 !important;
}
.register-card-color {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 3px 24px #0001;
    width: 100%;
    max-width: 720px;
    padding: 36px 32px 20px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.register-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.38rem;
    margin-bottom: 15px;
    color: #111;
}
.register-form-multicolor .register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}
.register-form-multicolor .input-group-custom {
    margin-bottom: 0;
}
.register-form-multicolor .input-group-custom.full {
    grid-column: 1 / -1;
}
.login-footer-link {
    margin-top: 18px;
}
@media (max-width: 900px) {
    .register-card-color {
        max-width: 99vw;
        padding: 18px 2vw 10px 2vw;
    }
    .register-form-multicolor .register-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .register-logo img {
        width: 100px;
    }
}
@media (max-width: 650px) {
    .register-page-wrap {
        min-height: 100vh;
        height: 100vh;
        padding: 0 !important;
    }
    .register-card-color { padding: 10px 2vw 8px 2vw;}
}


@media (max-width: 650px) {
    .navbar-custom { padding: 8px 4vw 0 4vw; }
    .login-card-color { padding: 26px 4vw 20px 4vw; }
    .login-logo img { width: 100px;}
    .login-page-wrap { min-height: calc(100vh - 48px); height: calc(100vh - 48px);}
}