/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; /* Fixed the typo */
    box-sizing: border-box;
}

body {
   
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #150229;
}

.container {
    background-color: whitesmoke;
    width: 400px;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.9);
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.container:hover {
    box-shadow: 0px 8px 20px rgba(255, 255, 255, 0.2);
}

.container p {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.container input {
    width: 100%;
    height: 50px;
    border: 2px solid #494eea;
    outline: none;
    padding: 10px;
    margin: 10px 0 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.container input:focus {
    border-color: #ff4b2b;
    box-shadow: 0px 4px 12px rgba(255, 75, 43, 0.5);
}

.container button {
    width: 100%;
    height: 40px;
    background: linear-gradient(45deg, #494eea, #6a11cb);
    color: whitesmoke;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

.container button:hover {
    background: linear-gradient(45deg, #6a11cb, #ff4b2b);
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(255, 75, 43, 0.4);
}

#imgbox {
    width: 200px;
    border-radius: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    margin: 0 auto;
}

#imgbox.show-img {
    max-height: 300px;
    opacity: 1;
    margin: 10px auto;
    border: 2px solid #d1d1d1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

#imgbox img {
    width: 100%;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
}

#imgbox img:hover {
    transform: scale(1.1);
}

.error {
    animation: shake 0.3s ease-in-out 2;
    border-color: red !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Responsive Design */
@media (max-width: 450px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .container input, .container button {
        font-size: 14px;
    }
}
