* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD LOGIN */
.container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* JUDUL */
h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #2e7d32; /* hijau NutriMate */
    font-weight: 700;
}


/* LABEL */
label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #374151;
}

/* INPUT */
input[type="text"], /* <--- TAMBAHAN BARIS INI */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #d1d5db;
    margin-bottom: 16px;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #60c414;
    box-shadow: 0 0 0 3px rgba(96,196,20,0.2);
}

/* PASSWORD TOGGLE */
.input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.input-wrapper input {
    margin-bottom: 0 !important;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%); /* Ini rumus centering vertikal */
    cursor: pointer;
    color: #6b7280;
    z-index: 10; /* Pastikan icon di atas layer input */
}

/* REMEMBER ME */
.remember-box {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #4b5563;
}

/* BUTTON LOGIN (PRIMARY) */
button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #2e7d32, #2e7d32);
    color: #ffffff;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* BUTTON KEMBALI KE HOME (SECONDARY) */
.btn-home {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: transparent;
    border: 2px solid #2e7d32;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: #2e7d32;
    color: #ffffff;
}

/* LINK LUPA PASSWORD & DAFTAR */
.text-center {
    text-align: center;
    margin-top: 14px;
}

.text-center a {
    color: #4b5563; /* abu soft */
    font-weight: 600;
    text-decoration: none;
}

.text-center a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* ERROR MESSAGE */
.error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
}
