/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
}

/* Background + Centering */
body {
    background: linear-gradient(135deg, #000000, #400000, #8b0000);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container form */
form {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 0, 0, 0.3);
}

/* Judul */
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ff2e2e;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Grup input */
form div {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Input style */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #333;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #ff2e2e;
    background: #000;
    box-shadow: 0 0 6px rgba(255, 0, 0, 0.6);
    outline: none;
}

/* Tombol */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff0000, #990000);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #cc0000, #660000);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4);
}

/* Link login */
p {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: #ccc;
}

p a {
    color: #ff2e2e;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

p a:hover {
    color: #ff5555;
    text-decoration: underline;
}

/* Error handling */
.error {
    background: #ffe6e6;
    padding: 12px;
    border: 1.5px solid #ff4d4d;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #b30000;
    font-size: 0.9rem;
}
