.tab-bar {
  display: flex;
  gap: var(--space-xs);
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.tab.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.qr-frame {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto var(--space-xl);
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.qr-frame img {
  width: 216px;
  height: 216px;
  image-rendering: pixelated;
  display: block;
}

.qr-frame__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  opacity: 0.8;
  pointer-events: none;
}

.qr-frame__corner--tl {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
  border-radius: var(--radius-sm) 0 0 0;
}

.qr-frame__corner--tr {
  top: -8px;
  right: -8px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 var(--radius-sm) 0 0;
}

.qr-frame__corner--bl {
  bottom: -8px;
  left: -8px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 var(--radius-sm);
}

.qr-frame__corner--br {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.login-section {
  animation: fadeIn 0.3s ease-in-out;
}

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

.login-section[hidden] {
  display: none;
}

.login-section form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-section .field-label {
  margin-bottom: var(--space-sm);
}

.login-section .input {
  margin-bottom: 0;
}

#guardSection {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#guardSection[hidden] {
  display: none;
}

#guardHint {
  margin-bottom: var(--space-md);
}
