
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --navy: #183b60;
    --teal: #19aa92;
    --muted: #657f9c;
    --line: #cfe2f3;
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--navy);
    background: #f5faff;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    overflow: hidden;
    isolation: isolate;
}

/* Ilustrasi asli sebagai background */
.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../img/login-illustration.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,.05) 0%,
        rgba(255,255,255,.06) 52%,
        rgba(244,250,255,.45) 75%,
        rgba(244,250,255,.55) 100%
    );
}

.brand-panel {
    padding: 42px 5vw 0 17%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.brand-name span,
.login-heading h2 span {
    color: var(--teal);
}

.brand-subtitle {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 900;
    color: #8195ad;
}

.brand-content {
    margin-top: clamp(40px, 6vh, 90px);
    max-width: 630px;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 16px;
    background: #e2f7f1;
    border-radius: 30px;
    color: #169b89;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 23px;
}

.brand-content h1 {
    font-size: clamp(34px, 3.2vw, 55px);
    line-height: 1.14;
    letter-spacing: -1.7px;
    font-weight: 900;
    margin: 0 0 23px;
}

.brand-content h1 span {
    color: #20ac9c;
}

.brand-content p {
    max-width: 530px;
    color: #607b99;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 30px;
    max-width: 560px;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2f7f2;
    color: #12a88e;
}

.feature-icon svg {
    width: 29px;
    height: 29px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature span {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    display: block;
}

.login-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 7% 25px 3%;
}

.login-card {
    width: 100%;
    max-width: 550px;
    padding: clamp(28px, 3.5vw, 55px);
    background: rgba(255,255,255,.97);
    border-radius: 30px;
    box-shadow: 0 25px 65px rgba(33,77,116,.10);
    border: 1px solid rgba(255,255,255,.95);
}

.login-heading {
    text-align: center;
    margin-bottom: 34px;
}

.login-heading .small-title {
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 900;
    color: #8195ad;
}

.login-heading h2 {
    margin: 14px 0 3px;
    font-size: clamp(30px, 2.5vw, 40px);
    font-weight: 900;
}

.login-heading .school {
    font-size: 11px;
    letter-spacing: 4px;
    color: #8195ad;
    font-weight: 900;
}

.login-heading p {
    color: #7188a3;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 22px;
}

.form-group {
    margin-bottom: 21px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 9px;
}

.form-group label svg {
    width: 18px;
    height: 18px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-control {
    width: 100%;
    height: 55px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    padding: 0 17px;
    font: inherit;
    font-size: 14px;
    color: var(--navy);
    background: #fff;
    outline: none;
    transition: .2s;
}

.form-control:focus {
    border-color: #24b6a0;
    box-shadow: 0 0 0 4px rgba(36,182,160,.12);
}

.form-control::placeholder {
    color: #99aac0;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 85px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--navy);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
}

.btn-login {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(100deg, #129e88, #50c9a3);
    color: #fff;
    font: inherit;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
    margin-top: 3px;
}

.btn-login:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.otp-info {
    margin-top: 23px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border-radius: 17px;
    background: linear-gradient(100deg, #e9f9f3, #eaf4ff);
    color: #617d99;
    font-size: 13px;
    line-height: 1.6;
}

.otp-info svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    stroke: #13aa93;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alert-error {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #ffd3d3;
    border-radius: 12px;
    padding: 13px;
    font-size: 13px;
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 25px;
    color: #8397ad;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1100px) {
    .login-page {
        grid-template-columns: 50% 50%;
    }

    .brand-panel {
        padding-left: 7%;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 350px;
    }
}

@media (max-width: 780px) {
    .login-page {
        display: flex;
        flex-direction: column;
    }

    .login-page::before {
        background-size: auto 100%;
        background-position: left bottom;
        opacity: .22;
    }

    .login-page::after {
        background: rgba(247,251,255,.70);
    }

    .brand-panel {
        padding: 22px 25px 0;
    }

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

    .brand-name {
        font-size: 22px;
    }

    .brand-content {
        display: none;
    }

    .login-side {
        flex: 1;
        padding: 30px 18px 35px;
    }

    .login-card {
        max-width: 500px;
        padding: 30px 24px;
        border-radius: 23px;
    }
}

@media (max-height: 780px) and (min-width: 781px) {
    .brand-content {
        margin-top: 28px;
    }

    .brand-content h1 {
        font-size: clamp(30px, 2.8vw, 43px);
    }

    .features {
        margin-top: 20px;
    }

    .login-card {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* Background hanya untuk tulisan fitur */
.feature {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}

.feature span {
    display: block;
    background: rgba(226, 247, 242, 0.60);
    padding: 9px 7px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(30, 75, 110, 0.06);
    color: #244563;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

/* Ikon tetap berdiri sendiri */
.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 10px;
    background: #e2f7f2;
}
.feature span {
    background: rgba(226, 247, 242, 0.55) !important;
    border-radius: 12px;
    padding: 9px 7px;
}