/* Standalone auth shell styles */
:root {
    --auth-brand: #2563eb;
    --auth-brand-dark: #1d4ed8;
    --auth-danger: #dc2626;
    --auth-danger-bg: #fee2e2;
    --auth-success: #16a34a;
    --auth-success-bg: #dcfce7;
    --auth-warning: #d97706;
    --auth-warning-bg: #fef3c7;
    --auth-gray-100: #f3f4f6;
    --auth-gray-200: #e5e7eb;
    --auth-gray-300: #d1d5db;
    --auth-gray-500: #6b7280;
    --auth-gray-700: #374151;
    --auth-gray-900: #111827;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--auth-gray-900);
    background: var(--auth-gray-100);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a {
    color: var(--auth-brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

code {
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    background: var(--auth-gray-100);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
}

.auth-container {
    width: min(calc(100% - 2rem), 1200px);
    margin: 0 auto;
    padding: 2rem;
}

.card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--auth-gray-200);
    font-size: 1.25rem;
}

.card h3 {
    font-size: 1rem;
}

.text-muted {
    color: var(--auth-gray-500);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 1 220px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--auth-gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--auth-gray-300);
    border-radius: 4px;
    font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--auth-brand);
    color: #fff;
}

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

.btn-secondary {
    border: 1px solid var(--auth-gray-300);
    background: #fff;
    color: var(--auth-gray-700);
}

.btn-secondary:hover {
    background: var(--auth-gray-100);
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--auth-brand);
    background: #eff6ff;
}

.alert-success {
    border-left-color: var(--auth-success);
    background: var(--auth-success-bg);
    color: #166534;
}

.alert-error,
.alert-danger {
    border-left-color: var(--auth-danger);
    background: var(--auth-danger-bg);
    color: #991b1b;
}

.alert-warning {
    border-left-color: var(--auth-warning);
    background: var(--auth-warning-bg);
    color: #92400e;
}

@media (max-width: 640px) {
    .auth-container {
        width: 100%;
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }
}
