/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(to right, #667eea, #764ba2);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* Container */
.form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Heading */
.form-container h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    color: #333;
}

/* Inputs */
.form-container input[type="email"],
.form-container input[type="text"],
.form-container input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-container input:focus {
    border-color: #764ba2;
    outline: none;
}

/* Buttons */
.form-container button {
    width: 100%;
    padding: 0.75rem;
    background-color: #764ba2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #5b3c91;
}

/* Error message */
.error-message {
    color: #d9534f;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Success message */
.success-message {
    color: #28a745;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Links */
.form-container p {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    text-align: center;
}

.form-container a {
    color: #764ba2;
    text-decoration: none;
    font-weight: 600;
}

.form-container a:hover {
    text-decoration: underline;
}
