@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* Fade-in page animation */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo glow pulse */
.logo {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 12px rgba(255, 80, 80, 0.8));
    animation: logoPulse 3s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 80, 80, 0.8)); }
    50% { filter: drop-shadow(0 0 22px rgba(255, 120, 0, 1)); }
}

/* Glassy neon container */
.form-container {
    background: rgba(40, 0, 60, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    text-align: center;

    border: 1px solid rgba(255, 80, 80, 0.4);
    box-shadow:
        0 0 20px rgba(255, 80, 80, 0.4),
        0 0 40px rgba(255, 120, 0, 0.3);

    animation: containerGlow 4s infinite ease-in-out;
    transition: 0.3s;
}

.form-container:hover {
    box-shadow:
        0 0 30px rgba(255, 120, 0, 0.7),
        0 0 60px rgba(255, 80, 80, 0.6);
}

@keyframes containerGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 80, 80, 0.4),
            0 0 40px rgba(255, 120, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 120, 0, 0.6),
            0 0 60px rgba(255, 80, 80, 0.5);
    }
}

/* Title glow + neon underline */
.promo-title {
    color: #b35cff;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 80, 255, 0.7);
    position: relative;
    animation: titleGlow 3s infinite ease-in-out;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 80, 255, 0.7); }
    50% { text-shadow: 0 0 20px rgba(255, 120, 255, 1); }
}

.promo-title::after {
    content: "";
    display: block;
    width: 0%;
    height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, #ff3b3b, #ff7b00);
    animation: underlineSlide 2s infinite;
}

@keyframes underlineSlide {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 0%; }
}

/* Inputs */
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 120, 0, 0.4);
    background: rgba(20, 0, 30, 0.6);
    color: white;
    font-size: 16px;
    transition: 0.2s;
    box-sizing: border-box; /* FIX */
}

input[type="text"]:focus {
    outline: none;
    border-color: #ff7b00;
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.8);
}

/* Hide default file input */
input[type="file"] {
    display: none;
}

/* Custom file upload button — FIXED ALIGNMENT */
.file-label {
    display: block;
    width: 100%;
    padding: 12px; /* MATCH INPUT */
    margin: 10px 0;

    border-radius: 8px;
    border: 1px solid rgba(255, 120, 0, 0.4); /* MATCH INPUT */
    background: rgba(20, 0, 30, 0.6); /* MATCH INPUT */
    color: white;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    box-sizing: border-box; /* FIX */

    position: relative;
    overflow: hidden;

    animation: neonPulse 3s infinite ease-in-out;
}

/* Neon gradient overlay */
.file-label::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ff3b3b, #ff7b00);
    opacity: 0.25;
    z-index: -1;
}

.file-label:hover {
    filter: brightness(1.25);
}

/* Upload button */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ff3b3b, #ff7b00);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    transition: 0.2s;
    box-sizing: border-box; /* FIX */

    animation: neonPulse 3s infinite ease-in-out;
}

button:hover {
    filter: brightness(1.25);
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.6); }
    50% { box-shadow: 0 0 20px rgba(255, 120, 0, 0.9); }
}

/* Status text */
#status {
    margin-top: 15px;
    font-size: 16px;
    color: #ffae7f;
}

/* Success animation */
.success {
    animation: successPop 0.4s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Error shake animation */
.error {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-6px); }
    100% { transform: translateX(0); }
}

/* Neon progress bar */
.progress-bar {
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, #ff3b3b, #ff7b00);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.8);
    border-radius: 4px;
    margin-top: 15px;
    transition: width 0.3s ease-out;
}

/* Center all form elements */
.form-container input[type="text"],
.form-container .file-label,
.form-container button {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Loading spinner */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
