/* RESET DASAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: "Poppins", sans-serif;
    background: #f8fafc;

    /* Grid background halus */
    background-image:
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 40px 40px;

    height: 100vh;
}

/* CONTAINER CENTER */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* CARD */
.login-card {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
}

/* LOGO */
.logo {
    width: 50px;
    margin-bottom: 15px;
}

/* TITLE */
h2 {
    color: #0f172a;
    margin-bottom: 5px;
}

/* SUBTITLE */
.subtitle {
    color: #6b7280;
    margin-bottom: 25px;
}

/* LABEL */
label {
    display: block;
    text-align: left;
    font-size: 12px;
    margin-bottom: 5px;
    color: #0f172a;
}

/* INPUT GROUP */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

/* ICON */
.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* INPUT */
.input-group input {
    width: 100%;
    padding: 12px 12px 12px 35px; /* padding kiri biar ga nabrak icon */
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    outline: none;
}

/* PASSWORD HEADER */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LINK LUPA */
.password-header a {
    font-size: 12px;
    color: #ff6b00;
    text-decoration: none;
}

/* REMEMBER */
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 14px;
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #ff6b00;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

/* HOVER BUTTON */
.btn-login:hover {
    background: #e65c00;
}

/* REGISTER TEXT */
.register-text {
    margin-top: 15px;
    font-size: 14px;
}

/* LINK */
.register-text a {
    color: #0f172a;
    font-weight: bold;
    text-decoration: none;
}

/* ERROR */
.error {
    color: red;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        margin: 10px;
    }
}
