@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lexend", sans-serif;
    background-image: url(../img/backlogin.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #e5e7eb;
}

/* overlay tipis biar teks lebih jelas */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55); /* biru gelap transparan */
    z-index: -1;
}

.container {
    padding: 20px;
    width: 100%;
    max-width: 400px;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

/* BACK BUTTON */
.back {
    font-size: 26px;
    margin-bottom: 10px;
}

.back a {
    text-decoration: none;
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
}

.back a:hover {
    color: #bfdbfe;
}

/* MAIN CARD CONTENT */
.main-content {
    padding: 10px 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.tittle h2 {
    letter-spacing: 0.12em;
    font-size: 1.4rem;
    color: #bfdbfe;
}

/* LOGO */
.logo img {
    height: 75px;
    filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.6));
}

/* FORM */
.form-login {
    position: relative;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.input-group label {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.input-group input {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #60a5fa;
    padding: 0 10px;
    font-size: 0.9rem;
    outline: none;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

.input-group input::placeholder {
    color: #9ca3af;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}

/* BUTTON */
button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button:hover {
    background: linear-gradient(90deg, #1d4ed8, #172554);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.6);
}

/* ALERT ERROR */
.alert {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
    font-size: 0.85rem;
}

/* hide util */
.hidden {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .container {
        margin: 0 16px;
        padding: 18px;
        border-radius: 16px;
    }

    .tittle h2 {
        font-size: 1.3rem;
    }

    .logo img {
        height: 65px;
    }
}
