* {
    box-sizing: border-box;
}

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

body {
    color: #171a21;
    background: #fff;
    font-family: "Nunito", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
}

.login-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 64px;
    background:
        linear-gradient(135deg, rgba(54,5,12,.86), rgba(112,17,29,.58)),
        url("/img/backgroundlogin.png") center / cover no-repeat;
}

.login-back {
    position: absolute;
    z-index: 3;
    top: 30px;
    left: 34px;
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.login-back:hover {
    background: #fff;
    color: #7d1722;
}

.login-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.login-visual-content img {
    width: min(300px, 65%);
    filter: drop-shadow(0 16px 35px rgba(0,0,0,.28));
}

.login-visual-content p {
    max-width: 410px;
    margin: 28px auto 0;
    color: rgba(255,255,255,.76);
    font-size: .94rem;
    line-height: 1.7;
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 50%;
    pointer-events: none;
}

.visual-orbit-one {
    top: -180px;
    left: -180px;
    width: 480px;
    height: 480px;
    box-shadow: 0 0 0 65px rgba(255,255,255,.025);
}

.visual-orbit-two {
    right: -190px;
    bottom: -190px;
    width: 550px;
    height: 550px;
    box-shadow: 0 0 0 75px rgba(255,255,255,.025);
}

.login-panel {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 42px clamp(38px, 6vw, 88px);
    background: #fff;
}

.login-box {
    width: 100%;
    max-width: 440px;
}

.login-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.login-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 58px;
}

.login-heading > span {
    color: #7d1722;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-heading h1 {
    margin: 10px 0 8px;
    color: #171a21;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;
    color: #667085;
    font-size: .92rem;
}

.login-form {
    margin-top: 32px;
}

.login-field + .login-field {
    margin-top: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #363a43;
    font-size: .82rem;
    font-weight: 800;
}

.input-shell {
    position: relative;
}

.input-leading {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    color: #858c98;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control {
    display: block;
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 13px 48px;
    border: 1px solid #d8dce4;
    border-radius: 11px;
    background: #fff;
    color: #171a21;
    font-size: .9rem;
}

.form-control::placeholder {
    color: #a0a6b1;
}

.form-control:focus {
    border-color: #7d1722;
    outline: none;
    box-shadow: 0 0 0 4px rgba(125,23,34,.1);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #858c98;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f2f3f5;
    color: #7d1722;
}

.password-toggle:focus-visible {
    outline: 2px solid #7d1722;
}

.invalid-feedback {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: .76rem;
}

.form-control.is-invalid {
    border-color: #b42318;
}

.login-options {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: .82rem;
}

.remember-option {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #5c626d;
    cursor: pointer;
}

.remember-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #7d1722;
}

.login-options a {
    color: #7d1722;
    font-weight: 700;
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

.btn-masuk {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 26px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #7d1722, #5a0c15);
    color: #fff;
    font-size: .94rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-masuk:hover {
    box-shadow: 0 12px 25px rgba(77,10,18,.23);
    transform: translateY(-2px);
}

.register-prompt {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 25px;
    padding: 14px;
    border-radius: 10px;
    background: #f7f8fa;
    color: #667085;
    font-size: .82rem;
}

.register-prompt a {
    color: #7d1722;
    font-weight: 800;
    text-decoration: none;
}

.login-copyright {
    margin: 25px 0 0;
    color: #a0a6b1;
    font-size: .72rem;
    text-align: center;
}

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

    .login-visual {
        min-height: 230px;
        padding: 55px 25px 35px;
    }

    .login-back {
        top: 18px;
        left: 18px;
    }

    .login-visual-content img {
        width: 145px;
    }

    .login-visual-content p {
        display: none;
    }

    .login-panel {
        min-height: auto;
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .login-visual {
        min-height: 190px;
    }

    .login-panel {
        padding: 38px 20px;
    }

    .login-logo {
        margin-bottom: 28px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .register-prompt {
        align-items: center;
        flex-direction: column;
    }
}
