* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f5f5f7;
    color: #222;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-wrapper,
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.auth-card,
.dashboard-card {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.auth-card h1,
.dashboard-card h1 {
    margin-bottom: 10px;
    font-size: 28px;
}

.auth-card p,
.dashboard-card p {
    margin-bottom: 20px;
    color: #666;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #c40000;
    outline: none;
}

button,
.btn {
    background: #c40000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s ease;
    display: inline-block;
    text-align: center;
}

button:hover,
.btn:hover {
    background: #990000;
}

.btn-outline {
    background: transparent;
    color: #c40000;
    border: 1px solid #c40000;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #e8f8ee;
    color: #1b7f46;
}

.alert-error {
    background: #fdecec;
    color: #b42318;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #c40000;
    font-weight: 600;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.topbar .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #c40000;
}

.nav-actions a {
    margin-left: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    color: #111;
}

.welcome-box {
    background: linear-gradient(135deg, #c40000, #8f0000);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.welcome-box h2 {
    margin-bottom: 10px;
}

.section-card {
    margin-top: 24px;
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.section-card h3 {
    margin-bottom: 14px;
}

.list {
    list-style: none;
}

.list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.list li:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .dashboard-card {
        padding: 22px;
    }

    .topbar .inner {
        flex-direction: column;
        gap: 12px;
    }
}


body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.main-header {
    background: #1e3a8a;
    color: #fff;
    padding: 15px 0;
}

.main-header nav a {
    color: #fff;
    margin-right: 15px;
    text-decoration: none;
}

.publisher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.publisher-stat {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

.alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #7f1d1d;
}

.btn {
    background: #2563eb;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
}