* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
}

/* =========================
   LOGIN WRAPPER
========================= */

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    min-height: 600px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;

    box-shadow: var(--shadow-elevated);
}

/* =========================
   BAGIAN KIRI
========================= */

.login-left {
    background: linear-gradient(
        180deg,
        var(--sidebar-start),
        var(--sidebar-end)
    );

    color: var(--sidebar-ink);

    padding: 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 55px;
}

.logo-icon {
    width: 58px;
    height: 58px;
    padding: 11px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 23px;
    font-weight: bold;
}

.logo-icon .logo-itik-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text h2 {
    font-size: 24px;
    margin-bottom: 4px;
}

.logo-text span {
    font-size: 13px;
    opacity: .8;
}

.welcome h1 {
    font-size: 38px;
    line-height: 1.2;

    margin-bottom: 18px;
}

.welcome p {
    font-size: 16px;
    line-height: 1.7;

    color: rgba(255, 255, 255, .85);

    max-width: 390px;
}

.decoration {
    margin-top: 45px;

    display: flex;
    gap: 8px;
}

.decoration span {
    width: 35px;
    height: 6px;

    border-radius: 20px;

    background: rgba(255, 255, 255, .35);
}

.decoration span:first-child {
    width: 65px;
    background: var(--sidebar-ink);
}

/* =========================
   BAGIAN KANAN
========================= */

.login-right {
    padding: 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    margin-bottom: 35px;
}

.login-title h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.login-title p {
    color: var(--muted);
    font-size: 15px;
}

/* =========================
   ALERT
========================= */

.alert {
    padding: 14px 16px;

    border-radius: 12px;

    margin-bottom: 20px;

    font-size: 14px;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-ink);

    border: 1px solid var(--error-border);
}

/* =========================
   FORM
========================= */

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

.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 14px;
    font-weight: bold;

    color: var(--ink);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--muted);

    font-size: 16px;

    pointer-events: none;
}

.form-control {
    width: 100%;

    padding: 14px 16px 14px 45px;

    border: 1px solid var(--input-border);

    border-radius: 13px;

    background: var(--input-bg);

    color: var(--ink);

    font-size: 14px;

    outline: none;

    transition: .2s;
}

.form-control:focus {
    border-color: var(--purple);

    background: var(--surface);

    box-shadow: 0 0 0 4px rgba(101, 83, 232, .08);
}

.form-control::placeholder {
    color: var(--muted);
}

/* =========================
   PASSWORD
========================= */

.password-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: var(--muted);

    font-size: 17px;

    cursor: pointer;

    padding: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s;
}

.toggle-password:hover {
    color: var(--purple);
}

.toggle-password span { display: flex; }
.toggle-password [hidden] { display: none; }

/* =========================
   BUTTON LOGIN
========================= */

.btn-login {
    width: 100%;

    padding: 15px;

    border: none;
    border-radius: 13px;

    background: var(--purple);
    color: var(--sidebar-ink);

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: .2s;

    margin-top: 5px;
}

.btn-login:hover {
    background: var(--purple-dark);

    transform: translateY(-1px);

    box-shadow: 0 8px 20px rgba(101, 83, 232, .2);
}

/* =========================
   LINK ADMIN PORTAL
========================= */

.admin-portal-box {
    margin-top: 16px;
}

.btn-admin-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    background: var(--surface-alt);
    color: var(--ink);
    text-decoration: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    border: 1px dashed var(--border-strong);
    transition: all .2s;
}

.btn-admin-portal:hover {
    background: var(--purple-light);
    color: var(--purple);
    border-color: var(--purple);
    transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */

.login-footer {
    text-align: center;

    margin-top: 28px;

    color: var(--muted);

    font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .login-left {
        padding: 40px;
    }

    .welcome h1 {
        font-size: 30px;
    }

    .welcome p {
        font-size: 14px;
    }

    .decoration {
        display: none;
    }

    .login-right {
        padding: 40px;
    }
}

@media (max-width: 500px) {

    body {
        padding: 15px;
    }

    .login-wrapper {
        border-radius: 20px;
    }

    .login-left {
        padding: 30px;
    }

    .login-right {
        padding: 30px 25px;
    }

    .logo {
        margin-bottom: 35px;
    }

    .welcome h1 {
        font-size: 27px;
    }

    .login-title h2 {
        font-size: 26px;
    }
}
