/* styles.css */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #007BFF;
    --primary-hover-color: #0056b3;
    --background-color: #f0f2f5;
    --container-bg-color: #ffffff;
    --text-color: #333;
    --heading-color: #111;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #28a745; /* Added success color */
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Basic Body Styles */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; /* This is the fix */
    align-items: center;
    justify-content: center;
}

.main-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
}

.auth-container {
    background-color: var(--container-bg-color);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-header img {
    width: 40px;
    height: 40px;
}

.logo-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.auth-container h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-buttons button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-buttons button:hover {
    background-color: var(--primary-hover-color);
}

.toggle-auth {
    text-align: center;
    margin-top: 20px;
}

.toggle-auth p {
    margin: 8px 0;
    font-size: 14px;
}

.toggle-auth a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.toggle-auth a:hover {
    text-decoration: underline;
}

.error-message,
.success-message {
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.error-message {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.reset-info {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.hidden {
    display: none;
}
