/* static/css/login.css */

/* --- Pengaturan Dasar & Latar Belakang --- */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

#my-vid {
    /* Kita target ID video agar lebih spesifik */
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    /* Memastikan video setidaknya selebar layar */
    min-height: 100%;
    /* Memastikan video setidaknya setinggi layar */
    width: auto;
    /* Biarkan browser yg mengatur lebar sesuai rasio */
    height: auto;
    /* Biarkan browser yg mengatur tinggi sesuai rasio */
    z-index: -1;

    /* Trik untuk memusatkan video di tengah layar */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* static/css/login.css */

.error-box {
    background-color: #ffcdd2; /* Merah muda */
    color: #c62828; /* Merah tua */
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

body {
    /* Sesuaikan nama file jika beda */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Kotak Login Utama (Efek Kaca) --- */
.login-box {
    width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    /* Kaca transparan */
    backdrop-filter: blur(15px);
    /* Efek blur pada background */
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    color: white;
}

/* --- Judul & Sub-judul --- */
.login-box h1 {
    font-size: 36px;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-box .subtitle {
    font-family: 'Brush Script MT', 'cursive';
    /* Font yg mirip dengan desain */
    font-size: 24px;
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 30px;
}

/* --- Grup Input (Username & Password) --- */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    /* Beri ruang kiri untuk ikon */
    background: rgba(255, 255, 255, 0.3);
    border: none;
    outline: none;
    border-radius: 15px;
    font-size: 16px;
    color: white;
    box-sizing: border-box;
}

/* --- Placeholder Text Styling --- */
.input-group input::placeholder {
    color: #eee;
}

/* --- Ikon di dalam Input --- */
.input-group::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Ikon untuk username */
input[name="username"]+.input-group::before,
form div:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* Ikon untuk password */
input[name="password"]+.input-group::before,
form div:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM9 8V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9z'/%3E%3C/svg%3E");
}

/* --- Tombol Login --- */
.login-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background-color: #28a745;
    /* Hijau seperti desain */
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #218838;
    /* Warna hijau sedikit lebih gelap saat hover */
}

/* --- Pengaturan Responsif untuk Layar Kecil --- */
@media (max-width: 480px) {
    .login-box {
        width: 90%;
        padding: 20px;
    }
}