:root {
    --hijau-tua: #0f5132;
    --hijau-utama: #157347;
    --hijau-muda: #d1e7dd;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f5132 0%, #1a7a4a 50%, #22c55e22 100%);
    position: relative;
    overflow: hidden;
}

/* Dekorasi latar */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .04) 0%, transparent 50%);
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeUp .5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo / Brand */
.brand-block {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .85rem;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.brand-sub {
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

/* Card */
.login-card {
    background: rgba(255, 255, 255, .97);
    border: none;
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.login-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--hijau-tua);
    margin-bottom: .25rem;
}

.login-card .sub {
    font-size: .82rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Form */
.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: .35rem;
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 2.6rem;
    border-radius: 10px !important;
    border: 1.5px solid #dee2e6;
    font-size: .875rem;
    transition: border-color .2s, box-shadow .2s;
    height: 42px;
}

.input-group-icon .form-control:focus {
    border-color: var(--hijau-utama);
    box-shadow: 0 0 0 3px rgba(21, 115, 71, .12);
}

.input-group-icon .icon {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
    z-index: 5;
    pointer-events: none;
}

/* Toggle password */
.btn-toggle-pw {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    z-index: 5;
    padding: 0;
    font-size: 1rem;
    transition: color .15s;
}

.btn-toggle-pw:hover {
    color: var(--hijau-utama);
}

/* Submit */
.btn-login {
    background: linear-gradient(135deg, var(--hijau-tua), var(--hijau-utama));
    border: none;
    color: #fff;
    border-radius: 10px;
    height: 44px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
    transition: opacity .2s, transform .15s;
    width: 100%;
}

.btn-login:hover {
    opacity: .9;
    transform: translateY(-1px);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

/* Error alert */
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    font-size: .82rem;
    padding: .6rem .9rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Back link */
.back-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .15s;
}

.back-link:hover {
    color: #fff;
}

/* Divider */
.divider {
    border-color: #f0f0f0;
    margin: 1.25rem 0 1rem;
}