/* 
 * System Zarządzania Zgodami i Działkami - Premium Stylesheet
 * Theme: Dark Glassmorphism (Glass UI) with HSL Accent Colors and Leaflet integration
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-base: #030712;
    --bg-surface: rgba(17, 24, 39, 0.65);
    --bg-surface-hover: rgba(31, 41, 55, 0.8);
    --bg-card: rgba(30, 41, 59, 0.45);
    --bg-card-highlight: rgba(51, 65, 85, 0.6);
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --border-active: rgba(99, 102, 241, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);

    --status-brak: hsl(215, 16%, 68%);           /* Brak zgody - Soft Slate Grey */
    --status-pewnosci: hsl(38, 92%, 50%);        /* Brak pewnosci - Amber Orange */
    --status-zastanawia: hsl(48, 96%, 53%);      /* Zgoda zostawiona + (zastanawia sie) - Yellow */
    --status-podpisy: hsl(199, 89%, 48%);        /* Zgoda zostawiona by zebrac podpisy - Sky Blue */
    --status-zebrana: hsl(142, 70%, 45%);        /* Zebrana zgoda - Emerald Green */
    --status-niezastano: hsl(262, 50%, 60%);     /* Nikogo nie zastałem + brak kontaktu - Indigo/Lavender */
    --status-odmowa: hsl(0, 84%, 60%);           /* Odmowa - Crimson Red */
    --status-niedotarle: hsl(328, 100%, 54%);    /* Nie dotarłem - Neon Pink */
    --status-none: #475569;                      /* Brak statusu - Grey */

    /* Glassmorphism properties */
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* App Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

/* Header styling */
header {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: var(--glass-shadow);
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-gradient);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #ffffff;
}

.brand-title {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* File Import and Settings section */
.controls-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-file-upload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-file-upload:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.btn-file-upload.loaded {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.supabase-status-indicator {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #ef4444; /* Default: Disconnected */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    transition: all 0.3s ease;
}

.supabase-status-indicator.connected {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-light);
    padding: 0 2rem;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Main Workspace */
.workspace-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-content {
    display: none;
    height: 100%;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* Map Tab Viewport */
.map-viewport {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Legend Overlay */
.map-legend {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--glass-shadow);
    z-index: 1000; /* Over Leaflet pane */
    max-width: 250px;
    pointer-events: none; /* Allows clicking map through legend if needed, or remove for inter. */
}

.legend-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Leaflet Dark Theme Overrides */
.leaflet-container {
    background: #0b0f19 !important;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-bar {
    border: 1px solid var(--border-light) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: var(--glass-blur);
    border-radius: 0.5rem !important;
    overflow: hidden;
    box-shadow: var(--glass-shadow) !important;
}

.leaflet-bar a {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-light) !important;
    transition: all 0.2s ease;
}

.leaflet-bar a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.leaflet-bar a:last-child {
    border-bottom: none !important;
}

/* Custom Tooltips on the Map */
.custom-map-tooltip {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-primary) !important;
    border-radius: 0.35rem !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 0.2rem 0.4rem !important;
    box-shadow: var(--glass-shadow) !important;
}

.custom-map-tooltip::before {
    border-right-color: rgba(15, 23, 42, 0.9) !important;
}

/* Popup adjustments */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    color: var(--text-primary) !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--glass-shadow) !important;
    padding: 0.25rem 0.5rem;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid var(--border-light);
}

.leaflet-popup-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.leaflet-popup-content strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Empty State / Upload Prompt */
.upload-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 450px;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    z-index: 1001; /* Over Leaflet Map */
    animation: fadeIn 0.4s ease-out;
}

.upload-placeholder h2 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.upload-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sample-load-btn {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.2s ease;
}

.sample-load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* List Tab Content */
.list-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem 0.6rem 2.25rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    fill: var(--text-secondary);
}

/* Towns Grid / Accordion */
.towns-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.town-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.town-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.town-summary {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: rgba(30, 41, 59, 0.2);
    transition: background 0.2s ease;
}

.town-summary:hover {
    background: rgba(30, 41, 59, 0.4);
}

.town-info-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fav-star {
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fav-star.active {
    color: #f59e0b; /* Yellow/Gold for favorite */
    transform: scale(1.15);
}

.town-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.town-info-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.town-stats {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.accordion-chevron {
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--text-secondary);
    transition: transform 0.25s ease;
}

.town-card.open .accordion-chevron {
    transform: rotate(180deg);
}

/* Plots List under Accordion */
.town-plots-list {
    display: none;
    border-top: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.3);
    padding: 1rem 1.5rem;
}

.town-card.open .town-plots-list {
    display: block;
}

.plots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.plot-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.plot-item:hover {
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.5);
    transform: translateX(2px);
}

.plot-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plot-item-num {
    font-size: 0.95rem;
    font-weight: 600;
}

.plot-item-addr {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Details Sidebar Drawer */
.details-sidebar {
    width: 380px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 1002; /* Over everything including Leaflet and placeholder */
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
}

.details-sidebar.open {
    transform: translateX(0);
}

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

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.sidebar-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-value-large {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

/* Status selection cards styling */
.status-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-option-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
}

.status-option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    transform: translateX(3px);
}

.status-option-btn.selected {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px currentColor;
}

.comment-textarea {
    width: 100%;
    height: 120px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
}

.btn-primary {
    flex: 1;
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

/* Modal Settings Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 450px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

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

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Notification banner for updates */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--glass-shadow);
    z-index: 3000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast-notification.error {
    border-color: rgba(239, 68, 68, 0.5);
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Status-specific HSL styles dynamically referenced in JS */
.status-bg-brak { background-color: var(--status-brak); color: #000000; }
.status-bg-pewnosci { background-color: var(--status-pewnosci); color: #000000; }
.status-bg-zastanawia { background-color: var(--status-zastanawia); color: #000000; }
.status-bg-podpisy { background-color: var(--status-podpisy); color: #ffffff; }
.status-bg-zebrana { background-color: var(--status-zebrana); color: #ffffff; }
.status-bg-niezastano { background-color: var(--status-niezastano); color: #ffffff; }
.status-bg-odmowa { background-color: var(--status-odmowa); color: #ffffff; }
.status-bg-niedotarle { background-color: var(--status-niedotarle); color: #ffffff; }
.status-bg-none { background-color: var(--status-none); color: #ffffff; }

.status-text-brak { color: var(--status-brak); }
.status-text-pewnosci { color: var(--status-pewnosci); }
.status-text-zastanawia { color: var(--status-zastanawia); }
.status-text-podpisy { color: var(--status-podpisy); }
.status-text-zebrana { color: var(--status-zebrana); }
.status-text-niezastano { color: var(--status-niezastano); }
.status-text-odmowa { color: var(--status-odmowa); }
.status-text-niedotarle { color: var(--status-niedotarle); }
.status-text-none { color: var(--status-none); }

.status-border-brak { border-color: var(--status-brak); }
.status-border-pewnosci { border-color: var(--status-pewnosci); }
.status-border-zastanawia { border-color: var(--status-zastanawia); }
.status-border-podpisy { border-color: var(--status-podpisy); }
.status-border-zebrana { border-color: var(--status-zebrana); }
.status-border-niezastano { border-color: var(--status-niezastano); }
.status-border-odmowa { border-color: var(--status-odmowa); }
.status-border-niedotarle { border-color: var(--status-niedotarle); }
.status-border-none { border-color: var(--status-none); }

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0%, #030712 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    transition: opacity 0.3s ease;
}

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    backdrop-filter: var(--glass-blur);
}

.login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-card input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.login-error-msg {
    margin-top: 1rem;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 1.25rem;
}
