/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Authentication pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin: 0 0 24px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
}

.auth-form input::placeholder {
    color: #9ca3af;
}

.auth-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-button {
    width: 100%;
    padding: 9px 16px;
    background-color: #0066ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-button:hover {
    background-color: #0052cc;
}

.auth-links {
    margin-top: 16px;
    text-align: center;
}

.auth-links p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.auth-links a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

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

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Message styles */
.success-message {
    background-color: #dcfce7;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
    font-size: 14px;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

/* Logout button */
.logout-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ef4444;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #dc2626;
}

/* Home button */
.home-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0d6efd; /* Blue background */
    color: white; /* White text */
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.home-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Form styles */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-container h2 {
    margin: 0 0 24px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4b5563;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    background-color: white;
}

/* Submissions section */
.submissions-section {
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.submissions-section h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.submissions-list {
    display: grid;
    gap: 20px;
}

.submission-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.submission-item h4 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.submission-item p {
    margin: 8px 0;
    color: #4b5563;
    font-size: 14px;
}

.submission-item small {
    display: block;
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    margin: -20px 0 25px;
    font-size: 15px;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}
