/* Authentication Styles */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px;
    margin: 0;
    text-align: center;
    font-size: 2em;
}

.auth-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

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

.auth-tab:hover:not(.active) {
    background-color: #e9ecef;
}

.auth-form {
    display: none;
    padding: 30px;
}

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

.auth-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85em;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

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

.auth-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
    font-size: 0.9em;
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-footer {
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.back-link:hover {
    color: #007bff;
}

/* User header styles */
.user-header {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #e9ecef;
}

.nav-link.active {
    background-color: #007bff;
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.user-role {
    background-color: #007bff;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85em;
}

.user-role.admin {
    background-color: #dc3545;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-actions a,
.user-actions button {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
    cursor: pointer;
}

.user-actions a {
    background-color: #007bff;
    color: white;
}

.user-actions a:hover {
    background-color: #0056b3;
}

.user-actions a.active {
    background-color: #28a745;
}

.logout-button {
    background-color: #6c757d;
    color: white;
    border: none;
}

.logout-button:hover {
    background-color: #5a6268;
}

/* Responsive design */
@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
}

/* Role selection styles */
.role-options {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.role-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.role-option:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.role-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.role-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #007bff;
}

.role-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background-color: #f0f8ff;
} 