/* Google Font (optional but recommended) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Body */
body {
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Card */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    text-align: center;
}

/* Title */
.card h2 {
    margin-bottom: 25px;
    color: #333;
    font-weight: 600;
}

/* Input Group */
.input-group {
    text-align: left;
    margin-bottom: 25px; /* FIXED spacing */
}

/* Labels */
.input-group label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Inputs */
.input-group input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Focus Effect */
.input-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.4);
}

/* Error Message */
.error {
    font-size: 12px;
    color: red;
    min-height: 16px; /* prevents layout jump */
    display: block;
    margin-top: 5px;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    margin-top: 10px; /* FIXED overlap */
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Button Hover */
button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Button Click */
button:active {
    transform: scale(0.98);
}

/* Success State */
.input-group.success input {
    border-color: #28a745;
}

/* Error State */
.input-group.error input {
    border-color: #dc3545;
}

/* Responsive (Mobile Friendly) */
@media (max-width: 480px) {
    .card {
        padding: 20px;
    }
}
