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

/* ==============================
   Global Variables (CI Farben) 123
   ============================== */
:root {
    --accent-color: #95c03d;    /* hellgrün */
    --accent-color2: #2a325d;   /* dunkelblau */
    --text-color: #333;
    --background-color: #fff;
    --border-color: #eee;
}

/* ==============================
   Global Reset & Base Styles
   ============================== */
body {
    margin: 0;
    font-family: Ubuntu, Segoe UI, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
}
.material-symbols-outlined {
    font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 48;
    font-size: 24px;
    vertical-align: middle;
}

/* ==============================
   Layout Container
   ============================== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}
.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100% !important;
}
/* Page wrapper for consistent alignment */
.page-container { margin: 50px 50px 0px 50px;  }
.content { margin-top: 0px; }

/* ==============================
   Headings (unified)
   ============================== */
/* Base heading styles */
h1, h2, h3, h4, h5, h6 { color: var(--accent-color2); line-height: 1.2; margin: 0 0 12px 0; font-weight: 700; }
/* Utility heading classes for consistent scaling */
.avn-h1 { font-size: 30px; }
.avn-h2 { font-size: 25px; }
.avn-h3 { font-size: 20px; }
.avn-h4 { font-size: 18px; }
.avn-h5 { font-size: 16px; }
.avn-h6 { font-size: 14px; }
/* Page title wrapper and default title class (match QR style baseline) */
.page-title { margin: 0 0 16px 0;}
.avn-title { color: var(--accent-color2); line-height: 1.2; margin: 0 0 12px 0; font-weight: 700; font-size: clamp(26px, 3vw, 34px); }
.user-role { 
    color: var(--text-muted); 
    font-size: 14px; 
    margin: 5px 0 0 0; 
    font-weight: 500;
    opacity: 0.8;
}

/* ==============================
   Header
   ============================== */
.header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-right { display: flex; align-items: center; gap: 1rem; position: relative; }
.welcome-text { font-size: 1.1rem; color: var(--accent-color2); font-weight: 500; vertical-align: middle; }
.header .logo { height: 90px; width: auto; cursor: pointer; margin-right: 1.5rem; }

/* ==============================
   Breadcrumb (global)
   ============================== */
.header.nav { margin: 0 !important; }
.avn-breadcrumb {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 6px;
    color: var(--accent-color2);
    font-size: 16px;
   margin: 20px 0 0 0; /* match breadcrumb and content left offset */
}
.avn-breadcrumb .material-symbols-outlined { font-size: 20px; vertical-align: middle; margin-right: 4px; }
.avn-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color2);
    background: #f9f9f9;
    padding: 2px 4px;
    border-radius: 8px;
}
.avn-breadcrumb .breadcrumb-item:hover { background: var(--accent-color); color: #fff; }
.avn-breadcrumb .breadcrumb-item.active { background: transparent; color: var(--text-color); font-weight: 400; }
.avn-breadcrumb .breadcrumb-separator { color: #aaa; margin: 0 6px; }

/* ==============================
   Hamburger & Dropdown Menu
   ============================== */
.nav .hamburger-menu {
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--accent-color2);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav .hamburger-menu:hover { background-color: var(--accent-color); color: #fff; }
.nav .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 999;
}
.nav .dropdown-menu.show { display: block; }
.nav .dropdown-menu li { margin: 0; padding: 0; }
.nav .dropdown-menu li a {
    color: var(--accent-color2);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav .dropdown-menu li a:hover { background-color: var(--accent-color); color: #fff; }

/* ==============================
   App Style Menu
   ============================== */
.app-menu { display: flex; gap: 20px; margin-top: 2rem; max-width: 90%; flex-wrap: wrap; }
.app-card { display: flex; width:200px; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; background: #f9f9f9; border-radius: 16px; padding: 20px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 8px 12px rgba(0,0,0,0.15); text-decoration: none; }
.app-card .material-symbols-outlined { font-size: clamp(40px, 5vw, 80px); margin-bottom: 10px; color: #333; }
.app-card span:last-child { font-size: 1rem; font-weight: 600; color: #222; }

/* Disabled App Card Style */
.app-card.disabled { 
    background: #e9ecef; 
    color: #6c757d; 
    cursor: not-allowed; 
    opacity: 0.6; 
    pointer-events: none; 
}
.app-card.disabled .material-symbols-outlined { color: #adb5bd; }
.app-card.disabled span:last-child { color: #6c757d; }
.app-card.disabled:hover { 
    transform: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

/* ==============================
   Buttons
   ============================== */
button, .faq-button, .btn {
    background-color: var(--accent-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
}
.btn-success { background-color: var(--accent-color) !important; }
.btn-success:hover { background-color: var(--accent-color2) !important; }
.btn-primary { background-color: var(--accent-color2) !important; }
.btn-primary:hover { background-color: #1e2347 !important; } /* Dunkleres Logo-Blau */
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

/* ==============================
   FAQ Table
   ============================== */
.faq-header { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.faq-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); table-layout: fixed; cursor: default; }
.faq-table th { background-color: var(--accent-color2); color: white; padding: 0.85rem; text-align: left; font-weight: 600; font-size: 0.95rem; }
.faq-table td { padding: 0.85rem; font-size: 0.9rem; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.faq-table tr:nth-child(even) { background-color: #fafafa; }
.faq-table tr:hover { background-color: #f1f5f9; transition: background-color 0.2s ease; }

/* ==============================
   Users Table (FP_USERS)
   ============================== */
.users-table-wrapper { width: 100%; overflow-x: auto; max-height: 55vh; overflow-y: scroll; }
.users-header { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
#userSearch { padding: 0.6rem 0.8rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; width: 250px; transition: border-color 0.2s ease; }
#userSearch:focus { border-color: var(--accent-color); outline: none; }
.users-table-header { width: 100%; min-width: 1200px; margin-top: 1.5rem; border-collapse: collapse; cursor: default; table-layout: fixed; }
.users-table, .faq-table.users-table { width: 100%; min-width: 1200px; border-collapse: collapse; cursor: default; table-layout: fixed; }
.users-table thead tr:nth-child(1) th { position: sticky; top: 0; z-index: 20; background-color: var(--accent-color2); }
.users-table thead tr:nth-child(2) td { position: sticky; top: 42px; z-index: 19; background-color: #c6c6c6; }
.users-table th { background-color: var(--accent-color2); color: #fff; padding: 0.85rem; text-align: left; font-weight: 600; font-size: 0.95rem; }
.users-table td { padding: 0.85rem; font-size: 0.9rem; vertical-align: middle; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.users-table tr:nth-child(even) { background-color: #fafafa; }
.users-table tr:hover { background-color: #f1f5f9; transition: background-color 0.2s ease; }

/* Bereinigungskandidaten hervorheben */
.users-table tr.cleanup-candidate { background-color: #fff3cd !important; border-left: 4px solid #ffc107; }
.users-table tr.cleanup-candidate:hover { background-color: #ffeaa7 !important; }

/* Bereinigungsbutton Styles */
#cleanupTableBtn.disabled { opacity: 0.6; cursor: not-allowed; }
#cleanupTableBtn.disabled:hover { background-color: #ffc107 !important; border-color: #ffc107 !important; }

/* E-Mail Aktionen Styles */
.email-action-btn { transition: all 0.2s ease; }
.email-action-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.email-action-btn .material-symbols-outlined { vertical-align: middle; }

/* E-Mail Historie Styles */
.email-history-container { max-height: 200px; overflow-y: auto; }
.email-history-entry { border: 1px solid #e9ecef; transition: all 0.2s ease; }
.email-history-entry:hover { background-color: #f8f9fa !important; border-color: #dee2e6; }
.email-history-text { flex: 1; line-height: 1.4; }
.delete-history-btn { min-width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; }
.delete-history-btn:hover { background-color: #dc3545; border-color: #dc3545; color: white; }

/* Spaltenbreiten synchronisieren für beide Tabellen */
.users-table-header th:nth-child(1), .users-table th:nth-child(1), .faq-table.users-table th:nth-child(1), .faq-table.users-table td:nth-child(1) { width: 4%; }
.users-table-header th:nth-child(2), .users-table th:nth-child(2), .faq-table.users-table th:nth-child(2), .faq-table.users-table td:nth-child(2) { width: 4%; }
.users-table-header th:nth-child(3), .users-table th:nth-child(3), .faq-table.users-table th:nth-child(3), .faq-table.users-table td:nth-child(3) { width: 6%; }
.users-table-header th:nth-child(4), .users-table th:nth-child(4), .faq-table.users-table th:nth-child(4), .faq-table.users-table td:nth-child(4) { width: 9%; }
.users-table-header th:nth-child(5), .users-table th:nth-child(5), .faq-table.users-table th:nth-child(5), .faq-table.users-table td:nth-child(5) { width: 12%; }
.users-table-header th:nth-child(6), .users-table th:nth-child(6), .faq-table.users-table th:nth-child(6), .faq-table.users-table td:nth-child(6) { width: 12%; }
.users-table-header th:nth-child(7), .users-table th:nth-child(7), .faq-table.users-table th:nth-child(7), .faq-table.users-table td:nth-child(7) { width: 8%; }
.users-table-header th:nth-child(8), .users-table th:nth-child(8), .faq-table.users-table th:nth-child(8), .faq-table.users-table td:nth-child(8) { width: 8%; }
.users-table-header th:nth-child(9), .users-table th:nth-child(9), .faq-table.users-table th:nth-child(9), .faq-table.users-table td:nth-child(9) { width: 8%; }
.users-table-header th:nth-child(10), .users-table th:nth-child(10), .faq-table.users-table th:nth-child(10), .faq-table.users-table td:nth-child(10) { width: 3%; }
.users-table-header th:nth-child(11), .users-table th:nth-child(11), .faq-table.users-table th:nth-child(11), .faq-table.users-table td:nth-child(11) { width: 3%; }
.users-table-header th:nth-child(12), .users-table th:nth-child(12), .faq-table.users-table th:nth-child(12), .faq-table.users-table td:nth-child(12) { width: 13%; }

/* Hintergrund für die Zeile mit den Filter-Input-Feldern */
.user-filters { background-color: #c6c6c6 !important; }
.user-filters td { padding: 4px !important; vertical-align: middle; }

/* Suchfelder und Dropdowns einheitlich gestalten */
.user-filters input, .user-filters select { 
    width: 100%; 
    box-sizing: border-box; 
    padding: 6px 8px; 
    font-size: 13px; 
    border: 1px solid #999; 
    border-radius: 4px; 
    background-color: #ffffff; 
    display: block;
    margin-bottom: 3px;
}
.user-filters input::placeholder { color: #999; }
.user-filters input:focus, .user-filters select:focus { 
    outline: none; 
    border-color: var(--accent-color2); 
    box-shadow: 0 0 3px rgba(42, 50, 93, 0.3); 
}
.user-filters input:last-child { margin-bottom: 0; }

/* ==============================
   QR-Code Generator (modulspezifisch)
   ============================== */
/* Buttons (Größe vereinheitlichen) */
.generate-button, .download-options .btn { height: 45px; min-width: 150px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
/* Eingabebereich */
.input-section { display: flex; flex-direction: column; height: 725px; }
.form-area { flex-grow: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; gap: 12px; }
.input-section .generate-button { margin-top: auto; margin-bottom: 0; align-self: flex-start; min-height: 45px; }
.download-options { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
/* Dateiname-Input */
.filename-field { margin-bottom: 15px; }
.filename-field input { border: 2px solid #0d6efd !important; font-weight: bold; background-color: #f8f9ff; }
.filename-field input:focus { border-color: #0a58ca !important; box-shadow: none !important; }
.filename-field .form-text { color: #6c757d; font-size: 0.875em; margin-top: 5px; }
/* VCARD form layout */
.qr-type-form .row { display: flex; gap: 15px; margin: 0; }
.qr-type-form .row .col-md-6 { flex: 1; padding: 0; }
.qr-type-form input, .qr-type-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.qr-type-form input:focus, .qr-type-form textarea:focus { outline: none; border-color: #0d6efd; box-shadow: none !important; }
.qr-type-form .form-text { color: #6c757d; font-size: 0.875em; margin-top: 5px; display: block; }
/* QR Vorschau */
#qrResult { display: flex; justify-content: center; align-items: center; min-height: 200px; flex-grow: 1; }
#qrResult img { border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #9ca3af; text-align: center; }
.qr-placeholder-icon { font-size: 120px !important; color: #d1d5db; margin-bottom: 20px; opacity: 0.7; }
.qr-placeholder-text { font-size: 16px; color: #6b7280; margin: 0; font-weight: 400; }
/* Hauptlayout */
.main-qrg-container { display: flex; gap: 30px; margin: 20px; }
.input-section { flex: 1; }
.preview-section { flex: 1; }
.history-container { flex: 2; overflow-y: auto; padding-top: 15px; }
/* Typ-Wahl */
.type-selection { display: flex; justify-content: flex-start; gap: 20px; margin-bottom: 20px; padding: 12px 15px; background: #f9f9f9; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.type-button { background-color: #6c757d; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 5px; transition: background-color 0.3s ease; }
.type-button:hover { background-color: #5a6268; }
.type-button.active { background-color: var(--accent-color2); color: white; }
.type-button.active .material-symbols-outlined { color: white; }
.material-symbols-outlined { font-size: 20px; }
/* Formular Sichtbarkeit */
.qr-type-form { display: none; }
.qr-type-form.active { display: flex; flex-direction: column; gap: 15px; flex-grow: 1; }
.qr-type-form h3 { margin-top: 0; margin-bottom: 15px; color: #333; }
.qr-type-form input[type="text"], .qr-type-form input[type="url"], .qr-type-form input[type="email"], .qr-type-form input[type="tel"], .qr-type-form textarea { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; width: 100%; box-sizing: border-box; }
.qr-type-form textarea { resize: vertical; min-height: 80px; }
/* Generate Button */
.generate-button { width: 100%; padding: 10px 15px; background-color: #28a745; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; display: flex; align-items: center; justify-content: center; }
.generate-button:hover { background-color: #218838; }
/* Preview Section */
.preview-section { background: #f9f9f9; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 15px; }
.preview-section h3 { text-align: center; margin-top: 0; margin-bottom: 20px; color: #333; }
#qrResult { flex-grow: 1; display: flex; justify-content: center; align-items: center; text-align: center; margin-bottom: 20px; }
#qrResult img { max-width: 100%; height: auto; }
/* Downloads */
.download-options { display: flex; justify-content: space-around; gap: 10px; }
.download-options button { flex: 1; padding: 10px 15px; border: 1px solid var(--accent-color); border-radius: 5px; background-color: var(--accent-color); color: white; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.download-options button:hover { background-color: var(--accent-color2); border-color: var(--accent-color2); color: white; }
/* History Table */
.history-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; border-radius: 8px; overflow: hidden; box-shadow: 5px 5px 5px rgba(0,0,0,0.1); cursor: default; table-layout: auto; }
.history-table th { background-color: #2a325d; color: #fff; padding: 0.85rem; text-align: left; font-weight: 600; font-size: 0.95rem; }
.history-table td { padding: 0.85rem; font-size: 0.9rem; vertical-align: middle; border-bottom: 1px solid #eee; white-space: nowrap; }
.history-table tr:nth-child(even) { background-color: #fafafa; }
.history-table tr:hover { background-color: #f1f5f9; transition: background-color 0.2s ease; }
.history-table .actions { text-align: center; }
.history-table .actions .btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
/* Spaltenbreiten für History */
.history-table th:nth-child(1), .history-table td:nth-child(1) { width: 60px; text-align: center; }
.history-table th:nth-child(2), .history-table td:nth-child(2) { width: 200px; font-weight: 600; }
.history-table th:nth-child(3), .history-table td:nth-child(3) { width: auto; word-break: break-word; white-space: normal; }
.history-table th:nth-child(4), .history-table td:nth-child(4) { width: 180px; }
.history-table th:nth-child(5), .history-table td:nth-child(5) { width: 120px; text-align: center; }
.history-table .text-muted { color: #6c757d; font-style: italic; font-size: 0.85rem; }
.history-table a { color: #0d6efd; text-decoration: none; }
.history-table a:hover { color: #0a58ca; text-decoration: underline; }

/* ==============================
   Modal (edit user) tweaks
   ============================== */
#editUserModal .modal-content { background-color: #f7f8fa; }
#editUserModal .form-label { font-weight: 600; }

/* Button palette fixes (override global .btn) */
.btn-warning { background-color: #ffc107 !important; border-color: #ffc107 !important; color: #212529 !important; }
.btn-warning:hover { background-color: #ffca2c !important; border-color: #ffc720 !important; }

/* Icon Farben für Katalog und Kommentar */
.katalog-added {
    color: #ffc107;
    cursor: pointer;
}

.comment-icon {
    cursor: pointer;
}

.comment-icon.has-comment {
    color: #ffc107;
}
.btn-danger { background-color: #dc3545 !important; border-color: #dc3545 !important; }
.btn-danger:hover { background-color: #bb2d3b !important; border-color: #b02a37 !important; }

/* Zusätzliche Button-Hover-Fixes für grüne Buttons */
.btn-success:hover,
.btn.btn-success:hover,
button.btn-success:hover {
    background-color: var(--accent-color2) !important; /* Logo-Blau */
    border-color: var(--accent-color2) !important;
    color: white !important;
}

/* Bootstrap Override für alle grünen Button-Varianten */
.btn-outline-success:hover {
    background-color: var(--accent-color2) !important; /* Logo-Blau */
    border-color: var(--accent-color2) !important;
    color: white !important;
}

/* Umfassende Button-Hover-Fixes für alle grünen Button-Kontexte */
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
button.btn-success:hover,
button.btn-success:focus,
button.btn-success:active,
input[type="submit"].btn-success:hover,
input[type="button"].btn-success:hover,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--accent-color2) !important; /* Logo-Blau */
    border-color: var(--accent-color2) !important;
    color: white !important;
    box-shadow: none !important;
}

/* ==============================
   Toast Notifications
   ============================== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 1050; display: flex; flex-direction: column; gap: 10px; }
.toast { color: white; padding: 15px; border-radius: 8px; min-width: 250px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.5s ease-in-out; }
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast.success { background-color: var(--accent-color); color: #fff; }
.toast.info { background-color: var(--accent-color2); color:#fff; }
.toast.error { background-color: #ff0019; color: #fff; }

/* ==============================
   Signup/Login (zusammengeführt)
   ============================== */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
:root{ --base-color: white; --input-color: #F3F0FF; }
html.auth-page *{ margin:0; padding:0; }
html.auth-page{ font-family: Ubuntu, Segoe UI, sans-serif; font-size: 12pt; color: var(--text-color); text-align: center; }
body.auth-bg{ min-height: 100vh; background-image: url(images/avnp_login_bg.svg); background-repeat: no-repeat; background-size: 50%; background-position: right; overflow: hidden; }
.wrapper{ box-sizing: border-box; background-color: var(--base-color); height: 100vh; width: max(40%, 600px); padding: 10px; border-radius: 0 20px 20px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
h1{ font-size: 3rem; font-weight: 900; text-transform: uppercase; }
html.auth-page form{ width: min(400px, 100%); margin-top: 20px; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
html.auth-page form > div{ width: 100%; display: flex; justify-content: center; }
html.auth-page form label{ flex-shrink: 0; height: 50px; width: 50px; background-color: var(--accent-color); fill: var(--base-color); color: var(--base-color); border-radius: 10px 0 0 10px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: 500; }
html.auth-page form input{ box-sizing: border-box; flex-grow: 1; min-width: 0; height: 50px; padding: 1em; font: inherit; border-radius: 0 10px 10px 0; border: 2px solid var(--input-color); border-left: none; background-color: var(--input-color); transition: 150ms ease; }
html.auth-page form input:hover{ border-color: var(--accent-color); }
html.auth-page form input:focus{ outline: none; border-color: var(--text-color); }
html.auth-page div:has(input:focus) > label{ background-color: var(--accent-color2); }
html.auth-page form input::placeholder{ color: var(--text-color); }
html.auth-page form button{ margin-top: 10px; border: none; border-radius: 10px; padding: .85em 4em; background-color: var(--accent-color2); color: var(--base-color); font: inherit; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: 150ms ease; width: 100%; }
html.auth-page form button:hover{ background-color: var(--text-color); }
html.auth-page form button:focus{ outline: none; background-color: var(--text-color); }
html.auth-page a{ text-decoration: none; color: var(--accent-color); }
html.auth-page a:hover{ text-decoration: underline; }
#preloader { position: fixed; top:0; left:0; width:100%; height:100%; background-color: rgba(255,255,255,0.8); display:flex; justify-content:center; align-items:center; z-index:9999; transition: opacity 0.5s ease-in-out; }
.spinner { border: 8px solid #f3f3f3; border-top: 8px solid var(--accent-color2); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
@keyframes spin { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }
.preloader-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media(max-width: 1100px){ .wrapper{ width: min(600px, 100%); border-radius: 0; } }
form div.incorrect label{ background-color: #f06272; }
form div.incorrect input{ border-color: #f06272; }
#error-message{ color:#f06272; }