/* ============================================
   PROTOCOLLO CRI ALESSANDRIA - STYLES
   ============================================ */

:root {
  --primary: #e53935;
  --primary-dark: #c62828;
  --secondary: #424242;
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  --light: #f5f5f5;
  --border: #e0e0e0;
  --text: #212121;
  --text-light: #757575;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   LOADING
   ============================================ */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-box {
  max-width: 400px;
  margin: 100px auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo h1 {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 5px;
}

.logo p {
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

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

.form-group small {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

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

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

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

/* ============================================
   ERROR MESSAGE
   ============================================ */

.error-message {
  padding: 10px;
  background: #ffebee;
  color: var(--danger);
  border-radius: 4px;
  margin-top: 10px;
  font-size: 14px;
}

/* ============================================
   SETUP 2FA
   ============================================ */

.setup-box {
  max-width: 500px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setup-box h2 {
  margin-bottom: 10px;
}

#qr-code {
  text-align: center;
  margin: 30px 0;
}

.manual-code {
  background: var(--light);
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.manual-code code {
  display: block;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 10px;
}

#backup-codes {
  margin-top: 30px;
  padding: 20px;
  background: #fff3cd;
  border: 2px solid var(--warning);
  border-radius: 4px;
}

#backup-codes h3 {
  color: var(--warning);
  margin-bottom: 10px;
}

#backup-codes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

#backup-codes-list code {
  display: block;
  padding: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
  color: var(--primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  background: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: rgba(255,255,255,0.1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
  padding: 30px 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view h2 {
  margin-bottom: 20px;
  color: var(--primary);
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 300px;
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-card small {
  color: var(--text-light);
  font-size: 12px;
}

/* ============================================
   TABLE
   ============================================ */

table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--light);
  font-weight: 600;
  color: var(--text);
}

tr:hover {
  background: var(--light);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .search-box input {
    min-width: 200px;
  }

  #backup-codes-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   OVERLAY DETTAGLIO PROTOCOLLO
   ============================================ */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.overlay.hidden {
  display: none;
}

.protocollo-detail {
  background: white;
  border-radius: 8px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

.detail-header h2 {
  margin: 0;
  color: var(--primary);
}

.detail-content {
  padding: 20px;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row label {
  font-weight: 600;
  color: var(--text-light);
}

.detail-row span {
  color: var(--text);
}

/* ============================================
   ALLEGATI
   ============================================ */

.detail-section {
  padding: 20px;
  border-top: 2px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.allegati-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.allegato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--light);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.allegato-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.allegato-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.allegato-icon {
  font-size: 24px;
}

.allegato-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.allegato-meta {
  font-size: 12px;
  color: var(--text-light);
}

.allegato-actions {
  display: flex;
  gap: 8px;
}

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

.btn-danger:hover {
  background: #d32f2f;
}

.no-allegati {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  background: var(--light);
  border-radius: 6px;
  font-style: italic;
}

/* ============================================
   PDF PREVIEW MODAL
   ============================================ */

.pdf-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdf-preview-content {
  background: white;
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.pdf-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--light);
}

.pdf-preview-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.pdf-preview-iframe {
  flex: 1;
  border: none;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  .pdf-preview-content {
    height: 95vh;
  }

  .allegato-actions {
    flex-wrap: wrap;
  }

  .allegato-actions button {
    flex: 1 1 45%;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .overlay {
    padding: 10px;
  }

  .protocollo-detail {
    max-height: 95vh;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-row label {
    font-size: 12px;
  }

  .allegato-item {
    flex-direction: column;
    gap: 12px;
  }

  .allegato-actions {
    width: 100%;
    justify-content: stretch;
  }

  .allegato-actions button {
    flex: 1;
  }
}


/* ============================================
   FLOATING HELP BUTTON
   ============================================ */

.floating-help-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.3s;
}

.floating-help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   TICKET MODAL
   ============================================ */

.ticket-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
  overflow-y: auto;
}

.ticket-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.ticket-modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--primary);
}

.ticket-form {
  padding: 20px;
}

.ticket-info {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #2196f3;
}

.ticket-info ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.ticket-info li {
  margin: 5px 0;
  font-size: 14px;
}

.ticket-info code {
  background: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--text);
}

.success-message {
  padding: 15px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  margin-top: 15px;
  border-left: 4px solid #4caf50;
  white-space: pre-wrap;
}

#char-count {
  font-weight: bold;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .floating-help-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .ticket-modal {
    padding: 10px;
  }

  .ticket-modal-content {
    max-height: 95vh;
  }
}

/* ============================================
   ADMIN BUTTON IN NAV
   ============================================ */

.btn-admin {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-admin:hover {
  background: #c62828;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(229, 57, 53, 0.3);
}

/* ============================================
   ADMIN OVERLAY
   ============================================ */

.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.admin-overlay.hidden {
  display: none;
}

.admin-panel {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  padding: 30px;
  min-height: 90vh;
}

.admin-panel h1 {
  margin: 0 0 30px 0;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   ADMIN STATS CARDS
   ============================================ */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border: 2px solid var(--primary);
  padding: 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.3);
  border-color: #c62828;
}

.stat-icon {
  font-size: 48px;
  opacity: 0.8;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   ADMIN TABS
   ============================================ */

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.admin-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}

.admin-tab:hover {
  color: var(--primary);
  background: var(--light);
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.admin-tab-content {
  margin-top: 20px;
}

/* ============================================
   ADMIN SECTION
   ============================================ */

.admin-section {
  background: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text);
}

/* ============================================
   ADMIN TABLE
   ============================================ */

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table thead {
  background: var(--light);
}

.admin-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

.admin-table code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--primary);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-danger {
  background: #ffebee;
  color: #c62828;
}

.badge-warning {
  background: #fff3e0;
  color: #ef6c00;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .admin-panel {
    padding: 15px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-icon {
    font-size: 36px;
  }

  .stat-value {
    font-size: 24px;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .admin-tab {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons button {
    width: 100%;
  }
}

.text-muted {
  color: var(--text-light);
  font-size: 14px;
  font-style: italic;
  margin-top: 10px;
}

/* ============================================
   DETAIL GRID
   ============================================ */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.detail-item {
  padding: 15px;
  background: var(--light);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.detail-item strong {
  display: block;
  color: var(--text-light);
  font-size: 12px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

/* ============================================
   ALLEGATI EDIT MODE
   ============================================ */

.allegato-edit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: var(--light);
  border-radius: 6px;
  border: 1px solid var(--border);
  gap: 15px;
}

.allegato-edit-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   PAGINATION INFO
   ============================================ */

.pagination-info {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ============================================
   LOGIN TABS
   ============================================ */

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.2s;
}

.login-tab:hover {
  color: var(--primary);
  background: var(--light);
}

.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LOGIN WRAPPER - Centra tutto
   ============================================ */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  padding: 20px;
}

.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  padding: 40px;
}

/* ============================================
   LOGIN HEADER
   ============================================ */

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-container {
  margin-bottom: 25px;
}

.login-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-header h1 {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.login-subtitle {
  color: #666;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.form-description {
  color: #666;
  margin-bottom: 25px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   LOGIN TABS
   ============================================ */

.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}

.login-tab {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s;
}

.login-tab:hover {
  color: var(--primary);
  background: #fafafa;
}

.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LOGIN FOOTER
   ============================================ */

.login-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f5f5f5;
  text-align: center;
}

.login-footer p {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin: 5px 0;
  line-height: 1.4;
}

.footer-subtitle {
  color: #999 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
  padding: 15px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  margin-top: 20px;
  border-left: 4px solid #4caf50;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.success-message.hidden {
  display: none;
}

/* ============================================
   BUTTON BLOCK
   ============================================ */

.btn-block {
  width: 100%;
  text-align: center;
  margin-top: 25px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .login-wrapper {
    padding: 15px;
  }

  .login-container {
    padding: 30px 25px;
  }

  .login-logo {
    width: 60px;
    height: 60px;
  }

  .login-header h1 {
    font-size: 22px;
  }

  .login-subtitle {
    font-size: 13px;
  }
}


/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.success-message {
  padding: 15px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  margin-top: 15px;
  border-left: 4px solid #4caf50;
  text-align: center;
  font-weight: 500;
}

.success-message.hidden {
  display: none;
}

/* ============================================
   BUTTON BLOCK
   ============================================ */

.btn-block {
  width: 100%;
  text-align: center;
}
