/* style.css */

:root {
    --primary-color: #007bff; /* Blue for key actions/branding */
    --secondary-color: #6c757d; /* Gray for secondary actions */
    --background-color: #f4f7f6; /* Light gray background */
    --card-background: #ffffff; /* White card background */
    --border-color: #ddd;
    --text-color: #333;
    --error-color: #dc3545; /* Red for errors */
}

/* --- Global Styles --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    min-height: 100vh;
    color: var(--text-color);
}

/* --- Landing Page/Index Styles --- */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-container {
    text-align: center;
    padding: 40px;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.landing-container h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.landing-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.landing-button {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.secondary-button {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.secondary-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.footer-note {
    margin-top: 40px;
    font-size: 0.8em;
    color: var(--secondary-color);
}

/* --- Auth Form Styles (Login/Register) --- */
.auth-container {
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 50px auto; /* Centers the form vertically */
}

.auth-form {
    background: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.auth-form h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.primary-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #0056b3; /* A darker shade of blue */
}

.forgot-pass, .auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.auth-link a, .forgot-pass a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.error {
    display: block;
    color: var(--error-color);
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.error-msg {
    background-color: #f8d7da;
    color: var(--error-color);
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}


/* --- Profile Styles --- */
.profile-container {
    max-width: 600px;
    margin: 50px auto;
    background: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-container header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.profile-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 5px;
}

.ngl-box-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.ngl-box-section textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    font-size: 16px;
}