/* auth.css */

/* Font & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Body dengan gradasi halus */
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e1e2f, #2a004f, #004f7c);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
}

/* Animasi gradasi halus */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Container utama */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Card login */
.auth-card {
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 2.8rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(130, 60, 255, 0.3);
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(130, 60, 255, 0.25);
}

/* Judul */
.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #9f5bff, #5e17eb, #00c3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Label dan Input */
label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #cfcfff;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px #7a34ff;
}

/* Tombol utama */
.btn-primary {
    width: 100%;
    margin-top: 1.8rem;
    background: linear-gradient(90deg, #5e17eb, #7a34ff, #00c3ff);
    background-size: 200%;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: background-position 0.4s ease, transform 0.2s;
}

.btn-primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(122, 52, 255, 0.3);
}

/* Pesan error */
.alert-danger {
    background: rgba(255, 50, 100, 0.15);
    color: #ff7b9c;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 100, 150, 0.3);
}

/* Teks kecil */
.text-small {
    text-align: center;
    margin-top: 1.3rem;
    font-size: 0.9rem;
    color: #bbb;
}

.text-small a {
    color: #8a5bff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-small a:hover {
    color: #00c3ff;
}

/* Responsif */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.8rem;
        border-radius: 15px;
    }
    h2 {
        font-size: 1.4rem;
    }
}
