/* Login page styles copied from seranking app.css */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #f8faff;
    --surface-hover: #edf3ff;
    --border: #d9e2f2;
    --border-soft: #e7edf8;
    --text: #111827;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --brand: #3a82f6;
    --brand-hover: #2f66cc;
    --brand-soft-bg: #e8f1ff;
    --brand-soft-text: #2f66cc;
    --skeleton-from: #eef3fb;
    --skeleton-to: #d9e2f2;
    --shadow-toast: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

html.dark {
    --bg: #0f1729;
    --surface: #111b30;
    --surface-alt: #15223f;
    --surface-hover: #1b2c4d;
    --border: #2a3b61;
    --border-soft: #223252;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --brand: #7aa7ff;
    --brand-hover: #9ebdff;
    --brand-soft-bg: #1d2c4f;
    --brand-soft-text: #7aa7ff;
    --skeleton-from: #1a2946;
    --skeleton-to: #2a3b61;
    --shadow-toast: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

html,
body {
    background: var(--bg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
    transition: all 150ms ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

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

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

html.dark input[type="color"] {
    background-color: var(--surface);
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: var(--text-subtle);
    opacity: 1;
}

html.dark input,
html.dark select,
html.dark textarea {
    background-color: var(--surface-alt) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
