:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --error: #ef4444;
    --success: #22c55e;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

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

.auth-divider {
    margin: 1rem 0;
    color: var(--text-muted);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.hidden {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.btn-logout {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.btn-logout:hover {
    background: var(--bg);
    color: var(--text);
}

.welcome-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: var(--text-muted);
}

.actwise-blog {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e293b;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

.actwise-blog h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    color: #0f172a;
}

.actwise-blog h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2.5rem 0 1rem 0;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.actwise-blog h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2rem 0 0.75rem 0;
    color: #334155;
}

.actwise-blog h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 1.5rem 0 0.5rem 0;
    color: #475569;
}

.actwise-blog p {
    margin: 0 0 1.5rem 0;
}

.actwise-blog a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.actwise-blog a:hover {
    color: #1d4ed8;
}

.actwise-blog strong {
    font-weight: 700;
    color: #0f172a;
}

.actwise-blog em {
    font-style: italic;
}

.actwise-blog ul,
.actwise-blog ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.actwise-blog li {
    margin-bottom: 0.5rem;
}

.actwise-blog li::marker {
    color: #64748b;
}

.actwise-blog blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #4f46e5;
    background: #f8fafc;
    font-style: italic;
    color: #475569;
}

.actwise-blog blockquote p {
    margin: 0;
}

.actwise-blog pre {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.actwise-blog code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #e11d48;
}

.actwise-blog pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.actwise-blog img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.actwise-blog hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

.actwise-blog table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.actwise-blog th,
.actwise-blog td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.actwise-blog th {
    background: #f8fafc;
    font-weight: 600;
}

.actwise-blog figure {
    margin: 1.5rem 0;
}

.actwise-blog figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
}
