@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: rgb(0, 0, 0);
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                      url(images/shop.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Container */
.form-container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

/* Title */
h2 {
    font-size: 1.8rem;
    color: rgb(255, 201, 101);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Labels */
label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* Inputs (email + password + code) */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #ff9f2a;
    outline: none;
    box-shadow: 0 0 6px rgba(255,159,42,0.4);
}

/* Primary submit buttons */
input[type="submit"],
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

/* Default button style (submit, send, reset) */
input[type="submit"],
button[name="verify"] {
    background: #ff9f2a;
    color: #fff;
}

input[type="submit"]:hover,
button[name="verify"]:hover {
    background: #e78c1f;
    transform: translateY(-2px);
}

/* Resend button */
button.resend-btn {
    background: #444;
    color: #fff;
}

button.resend-btn:hover {
    background: #222;
    transform: translateY(-2px);
}

/* Messages */
.form-message {
    margin: 15px 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success { color: #28a745; }
.form-message.error { color: #dc3545; }
.form-message.warning { color: #ffc107; }

/* Small fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Preloader */
#preloader {
    position: fixed;
    background: rgb(255, 255, 255) url(loading.gif) no-repeat center center;
    background-size: 150px 150px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease, filter 1s ease;
}

#preloader.fade-out {
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
}

