/* Authentication Styles */

.auth-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.auth-form .form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.auth-button {
    width: 100%;
    padding: 0.75rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-button:hover {
    background: #0056b3;
}

.auth-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
    border: 1px solid #f5c6cb;
}

/* Success Messages */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 1rem 0;
    display: none;
}

/* Registration Info */
.registration-info {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.registration-info h3 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.registration-info p {
    color: #6c757d;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.info-box {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.info-box strong {
    color: #1976d2;
    display: block;
    margin-bottom: 0.5rem;
}

.loading {
    display: none;
    text-align: center;
    padding: 1rem;
    color: #666;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.link-button {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
}

.link-button:hover {
    color: #0056b3;
}

/* Auth Header Styles for Main Pages */
.auth-header {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.auth-status {
    display: flex;
	flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.user-info {
    font-weight: 600;
    color: #333;
}

.auth-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background: #0056b3;
}

.logout-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background: #c82333;
}

.auth-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Welcome Page Styles */
.welcome-container {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
}

.welcome-buttons {
    margin-top: 2rem;
}

.welcome-button {
    display: inline-block;
    margin: 0 1rem;
    padding: 1rem 2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.welcome-button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.welcome-button.secondary {
    background: #6c757d;
}

.welcome-button.secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
	.auth-status {
		flex-direction: column;
		gap: 1rem;
		padding: 0 20px;
	}
	
}