@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #000;
    --danger: #ef4444;
    --text-dark: #1f2937;
    --bg-gradient: linear-gradient(135deg, #1e3a8a, #2563eb, #3b82f6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;

    /* Background Image */
    background: url('./pexels-efrain-alonso-1702385-3584283.jpg') no-repeat center center/cover;
    position: relative;
}

/* ============================= */
/* MAIN CARD */
/* ============================= */

.container {
    width: 100%;
    max-width: 480px; /* Compact width */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    color: white;
    animation: fadeIn 0.6s ease-in-out;
}

/* ============================= */
/* HEADER */
/* ============================= */

.logo {
    display: block;
    max-width: 90px;
    margin: 0 auto 15px;
}

h2 {
    text-align: center;
    margin-bottom: 22px;
    font-weight: 600;
    font-size: 20px;
}

/* ============================= */
/* FORM */
/* ============================= */

.form-group {
    margin-bottom: 18px;
}

label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

input[type="text"],
select,
input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

/* ============================= */
/* BUTTONS */
/* ============================= */

button {
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.capture-btn {
    background: white;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

.capture-btn:hover {
    background: var(--primary);
    color: white;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: #059669;
}

/* ============================= */
/* IMAGE PREVIEW */
/* ============================= */

.preview {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ============================= */
/* MODAL */
/* ============================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 95%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.modal-content video {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

#snap,
#closeModal {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
}

#snap {
    background: var(--success);
    color: white;
}

#closeModal {
    background: var(--danger);
    color: white;
}

.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: var(--danger);
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 480px) {
    .container {
        padding: 20px;
        border-radius: 14px;
    }

    h2 {
        font-size: 18px;
    }

    input,
    select {
        font-size: 12px;
    }

    button[type="submit"] {
        font-size: 13px;
    }
}