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

body {
  background: linear-gradient(135deg, #121414 0%, #1a1c1c 50%, #121414 100%);
  color: #e2e2e2;
  font-family: 'Hanken Grotesk', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(30, 32, 32, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.login-escudo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-title {
  font-family: 'Anybody', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #c3c6d7;
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 13px;
  color: #c7c6cc;
  margin-top: 6px;
  opacity: 0.6;
}

.tab-bar {
  display: flex;
  gap: 4px;
  background: rgba(18, 20, 20, 0.6);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #c7c6cc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #d2031e;
  color: #ffe1de;
  box-shadow: 0 2px 8px rgba(210, 3, 30, 0.3);
}

.tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  background: rgba(18, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #e2e2e2;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: #d2031e;
  box-shadow: 0 0 0 3px rgba(210, 3, 30, 0.15);
}

.input-field::placeholder {
  color: #c7c6cc;
  opacity: 0.4;
}

.hidden-input {
  display: none;
}

.error-msg {
  display: block;
  font-size: 13px;
  color: #ffb4ab;
  text-align: center;
  min-height: 20px;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.error-msg.visible {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: #d2031e;
  color: #ffe1de;
  border: none;
  border-radius: 10px;
  font-family: 'Anybody', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 0 #930011;
}

.btn-submit:hover {
  background: #e80322;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(4px);
  box-shadow: none;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 0 #930011;
}

.btn-submit .material-symbols-outlined {
  font-size: 20px;
}

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

.spin {
  animation: spin 1s linear infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
