* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 0 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

main {
    flex-grow: 1;
    padding: 2rem 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

footer {
    background-color: #2c3e50;
    text-align: center;
    padding: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo a {
    color: white;
    text-decoration: none;
}

/* Card styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #2c3e50;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-link {
    background: none;
    color: #3498db;
    padding: 0.6rem 0.5rem;
}

.btn-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Auth pages */
.auth-container {
    max-width: 420px;
    margin: 2rem auto;
}

.auth-container .card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-container .form-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.auth-container .form-footer a {
    color: #3498db;
    text-decoration: none;
}

.auth-container .form-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-welcome {
    margin-bottom: 1.5rem;
}

.dashboard-welcome h1 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.dashboard-welcome p {
    color: #777;
}

/* Responsive */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 0;
        gap: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 1rem;
    }

    .auth-container {
        margin: 1rem auto;
    }
}