/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #6C63FF, #7EE8FA);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 30px;
    animation: fadeIn 1s ease-in-out;
}

.error-message {
    background: #ffe6e6;
    color: #d9534f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    animation: shake 0.5s ease;
}

h1 {
    font-size: 1.8rem;
    color: #6C63FF;
}

p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.form-container {
    width: 100%;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

input {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

.submit-btn {
    background: #6C63FF;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #564edd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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