* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.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;
    position: relative;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 25px;
    width: fit-content;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
}

.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: 26px;
}

.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: 34px;
    line-height: 1.25;
    margin-bottom: 15px;
}

.welcome p {
    font-size: 15px;
    line-height: 1.6;
    opacity: .9;
}

/* BAGIAN KANAN */
.login-right {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.login-title h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--ink);
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--ink);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 13px 18px 13px 45px;
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--ink);
    transition: all .2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--purple-light);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--muted);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--sidebar-start), var(--sidebar-end));
    color: var(--sidebar-ink);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(61, 52, 139, .3);
    transition: transform .1s, box-shadow .2s;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(61, 52, 139, .4);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-ink);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    border-left: 4px solid var(--error-border);
}

/* BACK LINK */
.back-link-box {
    margin-top: 20px;
    text-align: center;
}

.btn-back-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--purple);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color .2s;
}

.btn-back-user:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

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

    .login-left {
        padding: 35px;
    }

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