/* auth.css */

body {
    background: linear-gradient(135deg, #f0e6ff, #e0f6ff, #ffe0e6); /* Light, gentle gradient for auth pages */
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-box {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white box */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box; /* Include padding in width */
}

.auth-box h2 {
    color: #3f51b5; /* Deep blue title */
    margin-bottom: 30px;
    font-size: 2em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3f51b5;
    outline: none;
}

.error-message {
    color: #f44336; /* Red error message */
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 15px;
    height: 1.2em; /* Reserve space to prevent layout shift */
}

.auth-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #3f51b5, #5c6bc0); /* Blue gradient button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.switch-auth {
    margin-top: 25px;
    font-size: 0.9em;
    color: #777;
}

.switch-auth a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: bold;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-box {
        padding: 25px;
        margin: 10px; /* Add some margin on very small screens */
    }

    .auth-box h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 10px;
    }

    .auth-button {
        padding: 12px;
        font-size: 1em;
    }
}

