/* ================================================================
   Stake Registry Design System
   Based on Domaine Chateau Bellevue branding
   ================================================================ */

/* CSS Custom Properties (Design Tokens) */
:root {

    /* Color Palette - Elegant wine/vineyard theme */
    --background: hsl(48, 53%, 95%);
    --foreground: hsl(152, 24%, 18%);

    --card: hsl(48, 53%, 98%);
    --card-foreground: hsl(152, 24%, 18%);

    --popover: hsl(48, 53%, 98%);
    --popover-foreground: hsl(152, 24%, 18%);

    --primary: hsl(152, 36%, 20%);
    --primary-foreground: hsl(48, 55%, 96%);

    --secondary: hsl(150, 28%, 32%);
    --secondary-foreground: hsl(48, 55%, 96%);

    --muted: hsl(120, 20%, 90%);
    --muted-foreground: hsl(150, 15%, 32%);

    --accent: hsl(32, 55%, 60%);
    --accent-foreground: hsl(48, 55%, 96%);

    --destructive: hsl(4, 70%, 42%);
    --destructive-foreground: hsl(48, 55%, 96%);

    --border: hsl(150, 20%, 82%);
    --input: hsl(150, 20%, 82%);
    --ring: hsl(152, 36%, 26%);

    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.875rem;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    border-color: var(--border);
}

html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    background-image: radial-gradient(circle at 0% 0%, hsla(150, 45%, 88%, 0.45), transparent 55%),
        linear-gradient(180deg, hsla(48, 50%, 96%, 0.98), hsla(48, 45%, 92%, 0.9));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.font-display {
    font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
}

.font-mono {
    font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

/* Text utilities */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }
.text-destructive { color: var(--destructive); }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* Font weights */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Links */
a, .btn-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, .btn-link:hover {
    text-decoration: underline;
    color: var(--secondary);
}

/* Card Component */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Stats Card */
.stats-card {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.stats-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* Badge Component */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    line-height: 1;
    text-transform: capitalize;
}

.badge-default {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.badge-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--muted);
}

.btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--muted);
}

.btn-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-rounded {
    border-radius: 9999px;
}

/* Input Component */
.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(37, 99, 73, 0.1);
}

.input::placeInvestor {
    color: var(--muted-foreground);
}

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

/* Label */
label, .label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    opacity: 0.9;
}

/* Table Component */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background-color: var(--muted);
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Dialog/Modal Component */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dialog {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-header {
    padding: 1.5rem 1.5rem 0;
}

.dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.dialog-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.dialog-content {
    padding: 1rem 1.5rem;
}

.dialog-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Tabs Component */
.tabs-list {
    display: flex;
    gap: 0.25rem;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.25rem;
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

.tab-trigger {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-trigger:hover {
    color: var(--foreground);
}

.tab-trigger.active {
    background-color: var(--card);
    color: var(--primary);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.tab-content {
    margin-top: 1rem;
}

/* Header/Navbar */
.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    display: flex;
    flex-direction: column;
}

.header-subtitle {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--muted-foreground);
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--foreground);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-3xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    backdrop-filter: blur(4px);
}

.stats-grid.admin {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .stats-grid.admin {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Separator */
.separator {
    background-color: var(--border);
}

.separator-horizontal {
    height: 1px;
    width: 100%;
}

.separator-vertical {
    width: 1px;
    height: 1.5rem;
}

/* Alert/Error */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.alert-destructive {
    background-color: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.4);
    color: var(--destructive);
}

.alert-success {
    background-color: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: hsl(142, 76%, 36%);
}

.alert-info {
    background-color: rgba(37, 99, 73, 0.1);
    border: 1px solid rgba(37, 99, 73, 0.3);
    color: var(--primary);
}

/* Chip */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: var(--muted);
    border-radius: var(--radius);
    margin: 0.125rem;
}

/* Content Layout */
.content {
    padding-top: 1.1rem;
}

.main-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 24rem;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
}

.search-input-wrapper .input {
    padding-left: 2rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

/* Utility Classes */
.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.underline { text-decoration: underline; }
.capitalize { text-transform: capitalize; }
.w-full { width: 100%; }

/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid hsl(142, 76%, 36%);
}

.invalid {
    outline: 1px solid var(--destructive);
}

.validation-message {
    color: var(--destructive);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--destructive);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Form helpers */
.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeInvestor, 
.form-floating > .form-control::placeInvestor {
    color: var(--muted-foreground);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeInvestor, 
.form-floating > .form-control:focus::placeInvestor {
    text-align: start;
}

/* Focus styles */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--ring);
}

/* Footer */
.app-footer {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
}

.app-footer .separator {
    margin: 1.5rem 0;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Auth layout */
.auth-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 440px));
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    max-width: 980px;
    margin: 2.5rem auto;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.auth-brand-title {
    font-weight: 600;
    color: var(--foreground);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.auth-hero {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-2xl);
    background: linear-gradient(145deg, rgba(37, 99, 73, 0.1), rgba(37, 99, 73, 0.05));
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 440px;
}

.auth-title {
    font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.auth-subtitle {
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 36rem;
}

.auth-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background-color: var(--muted);
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.95rem;
}

.pill-outline {
    background: transparent;
    border: 1px solid var(--border);
}

.auth-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    max-width: 480px;
}

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

.auth-card-title {
    margin: 0.15rem 0 0;
}

.auth-card-body {
    padding-top: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--card);
    color: var(--foreground);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 73, 0.12);
}

.form-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    margin-right: 0.4rem;
    border-radius: 0.35rem;
    border: 1px solid var(--border);
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.auth-external {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .auth-shell {
        grid-template-columns: 1fr;
        margin: 1.5rem auto;
    }

    .auth-hero {
        order: 2;
    }

    .auth-card {
        order: 1;
    }
}