@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;500;700&display=swap');

:root {
    /* Palet Warna Hijau & Hitam Mewah */
    --bg-dark-matte: #0A0A0A;       /* Hitam sangat pekat untuk latar belakang */
    --card-dark: #141414;           /* Hitam sedikit lebih terang untuk kartu */
    --text-white: #FBFBFA;          /* Putih tulang untuk teks */
    --matcha-green: #A3B18A;        /* Hijau Matcha untuk aksen terang */
    --army-green: #3A4736;          /* Hijau Army untuk aksen gelap/tombol */
    --text-grey-light: #888888;     /* Abu-abu untuk teks sekunder */
    --border-grey: #222222;         /* Garis pembatas kartu yang sangat samar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark-matte);
    /* Cahaya hijau matcha samar di latar belakang untuk memberikan dimensi */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(163, 177, 138, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(58, 71, 54, 0.1) 0%, transparent 40%);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.login-card {
    background: var(--card-dark);
    padding: 70px 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-grey);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8); /* Bayangan hitam pekat */
    text-align: center;
}

/* =========================================
   HEADER LOGO 
========================================= */
.brand-header {
    margin-bottom: 60px;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 12px;
}

/* Teks Putih & Hijau Matcha */
.brand-logo-berita { color: var(--text-white); margin-right: 8px;}
.brand-logo-almer { color: var(--matcha-green); }

.sub-header {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-grey-light);
    font-weight: 300;
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* =========================================
   FORM GROUP & IKON
========================================= */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    border: 2px solid var(--border-grey);
    background-color: #0F0F0F;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--army-green);
    box-shadow: 0 0 15px rgba(58, 71, 54, 0.3);
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.form-group input:focus ~ .input-icon,
.form-group input:not(:placeholder-shown) ~ .input-icon {
    opacity: 1;
}

/* Ikon SVG (Warna disesuaikan menjadi Hijau Matcha agar senada) */
.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23A3B18A' d='M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z'/%3E%3C/svg%3E");
}

.icon-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23A3B18A' d='M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z'/%3E%3C/svg%3E");
}

.form-group input::placeholder {
    color: #555555;
}

/* =========================================
   TOMBOL LOGIN (HIJAU ARMY & MATCHA)
========================================= */
.btn-login {
    width: 100%;
    padding: 22px;
    background-color: var(--army-green);
    color: var(--text-white);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: var(--matcha-green);
    color: var(--bg-dark-matte); /* Teks menjadi hitam saat di-hover agar kontras */
    box-shadow: 0 5px 20px rgba(163, 177, 138, 0.2);
}

.btn-login:active {
    transform: translateY(2px);
}

/* =========================================
   ERROR & TAUTAN BAWAH
========================================= */
.error-msg {
    color: #D9534F;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(217, 83, 79, 0.05);
    padding: 15px;
    border: 1px solid rgba(217, 83, 79, 0.2);
    border-radius: 6px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-grey-light);
    font-weight: 300;
    margin-top: 40px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--matcha-green);
}

.back-link .arrow {
    font-size: 1.1rem;
    margin-right: 8px;
}