:root {
  color-scheme: light;
  --primary-color: #0da574;
  --primary-hover-color: #0b8d63;
  --primary-light: rgba(13, 165, 116, 0.12);
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --text-color: #334155;
  --text-muted: #64748b;
  --white-color: #ffffff;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary-color: #10b981;
  --primary-hover-color: #059669;
  --primary-light: rgba(16, 185, 129, 0.16);
  --dark-color: #f8fafc;
  --light-color: #0b1120;
  --text-color: #cbd5e1;
  --text-muted: #94a3b8;
  --white-color: #111827;
  --border-color: #1f2937;
  --card-bg: #111827;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover-color);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(13, 165, 116, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-color);
  border-color: var(--border-color);
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: var(--primary-light);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] header {
  background: rgba(17, 24, 39, 0.85);
}

nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  color: var(--dark-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  transform: rotate(-5deg);
  box-shadow: 0 4px 12px rgba(13, 165, 116, 0.28);
  flex-shrink: 0;
}

.brand-word {
  letter-spacing: 0.5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--dark-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-auth .btn {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

main.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background-color: var(--card-bg);
  padding: 38px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.auth-card .logo {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 850;
  margin-bottom: 12px;
  color: var(--dark-color);
  letter-spacing: -0.3px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.5;
}

.access-emblem {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  margin: 0 auto 16px auto;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.access-title {
  text-align: center;
  font-size: 20px;
  font-weight: 850;
  color: var(--dark-color);
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.detail-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.passenger-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.totp-info-box {
  background: var(--primary-light);
  border: 1px solid rgba(13, 165, 116, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  line-height: 1.5;
}

.totp-info-box svg,
.totp-info-box i {
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.totp-info-box strong {
  color: var(--dark-color);
  display: block;
  margin-bottom: 2px;
}

.totp-code-input {
  font-size: 1.8rem !important;
  text-align: center !important;
  letter-spacing: 12px !important;
  font-weight: 800 !important;
  padding: 14px !important;
  font-family: monospace, sans-serif !important;
  background: var(--light-color) !important;
  color: var(--dark-color) !important;
}

.vinculo-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.vinculo-btn {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vinculo-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.vinculo-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
}

.form-row {
  display: flex;
  gap: 14px;
}

.form-row .form-group {
  flex: 1;
}

select,
select.input-field,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background-color: var(--light-color);
  color: var(--dark-color);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select:hover,
select.input-field:hover,
.form-select:hover {
  border-color: var(--primary-color);
}

select:focus,
select.input-field:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230da574' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select option,
select.input-field option,
.form-select option {
  background-color: var(--white-color);
  color: var(--dark-color);
  padding: 10px 14px;
  font-size: 13px;
}

[data-theme="dark"] select,
[data-theme="dark"] select.input-field,
[data-theme="dark"] .form-select {
  background-color: var(--light-color);
  color: var(--dark-color);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] select:focus,
[data-theme="dark"] select.input-field:focus,
[data-theme="dark"] .form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] select option,
[data-theme="dark"] select.input-field option,
[data-theme="dark"] .form-select option {
  background-color: var(--card-bg);
  color: var(--dark-color);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper .select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
  transition: color 0.2s ease;
  z-index: 2;
}

.select-wrapper select,
.select-wrapper select.input-field,
.select-wrapper .select-custom {
  padding-left: 40px;
}

.select-wrapper:focus-within .select-icon {
  color: var(--primary-color);
}

.custom-select-container {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.custom-select-container select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
}

.custom-select-trigger {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--light-color);
  color: var(--dark-color);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.custom-select-container.has-icon .custom-select-trigger {
  padding-left: 40px;
}

.custom-select-container .custom-select-lead-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.custom-select-trigger:hover {
  border-color: var(--primary-color);
}

.custom-select-container.is-open .custom-select-trigger,
.custom-select-trigger:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.custom-select-container.is-open .custom-select-lead-icon {
  color: var(--primary-color);
}

.custom-select-trigger-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}

.custom-select-trigger-text.is-placeholder {
  color: var(--text-muted);
}

.custom-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  pointer-events: none;
}

.custom-select-container.is-open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--primary-color);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.2), 0 6px 16px -2px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  max-height: 290px;
}

.custom-select-container.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.custom-select-container.opens-up .custom-select-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(8px) scale(0.98);
}

.custom-select-container.opens-up.is-open .custom-select-dropdown {
  transform: translateY(0) scale(1);
}

.custom-select-search-wrap {
  padding: 10px 12px 8px 12px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background: var(--light-color);
}

.custom-select-search-wrap i {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
}

.custom-select-search-input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--dark-color);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-select-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.custom-select-options {
  overflow-y: auto;
  max-height: 220px;
  padding: 6px;
  list-style: none;
  margin: 0;
}

.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 9999px;
}

.custom-select-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  user-select: none;
  text-align: left;
}

.custom-select-option:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  transform: translateX(3px);
}

.custom-select-option.is-selected {
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
}

.custom-select-option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.custom-select-option .option-check {
  font-size: 11px;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-select-option.is-selected .option-check {
  opacity: 1;
}

.custom-select-empty {
  padding: 16px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="dark"] .custom-select-trigger {
  background: var(--light-color);
  color: var(--dark-color);
  border-color: var(--border-color);
}

[data-theme="dark"] .custom-select-dropdown {
  background: var(--card-bg);
  border-color: var(--border-color);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .custom-select-search-wrap {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
}

[data-theme="dark"] .custom-select-search-input {
  background: var(--card-bg);
  color: var(--dark-color);
  border-color: var(--border-color);
}

[data-theme="dark"] .custom-select-option {
  color: var(--dark-color);
}

[data-theme="dark"] .custom-select-option:hover,
[data-theme="dark"] .custom-select-option.is-selected {
  background: var(--primary-light);
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-color);
}

.form-group input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--light-color);
  color: var(--dark-color);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  -webkit-text-fill-color: var(--dark-color) !important;
  caret-color: var(--dark-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  -webkit-text-fill-color: var(--dark-color) !important;
  caret-color: var(--dark-color) !important;
}

.form-group input:-webkit-autofill:focus,
.form-group input:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset, 0 0 0 3px var(--primary-light) !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset, 0 0 0 3px var(--primary-light) !important;
  border-color: var(--primary-color) !important;
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  -webkit-text-fill-color: var(--dark-color) !important;
  caret-color: var(--dark-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] input:autofill,
[data-theme="dark"] input:autofill:hover,
[data-theme="dark"] input:autofill:focus,
[data-theme="dark"] input:autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset !important;
  -webkit-text-fill-color: var(--dark-color) !important;
  caret-color: var(--dark-color) !important;
}

[data-theme="dark"] .form-group input:-webkit-autofill:focus,
[data-theme="dark"] .form-group input:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--light-color) inset, 0 0 0 3px var(--primary-light) !important;
  box-shadow: 0 0 0 1000px var(--light-color) inset, 0 0 0 3px var(--primary-light) !important;
  border-color: var(--primary-color) !important;
}

.btn-full-width {
  width: 100%;
  height: 44px;
  font-size: 14px;
  margin-top: 10px;
}

.forgot-password-link {
  display: block;
  text-align: right;
  margin-top: -6px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--primary-color);
  font-weight: 600;
}

.forgot-password-link:hover {
  color: var(--primary-hover-color);
  text-decoration: underline;
}

.auth-bottom-link {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-bottom-link a {
  color: var(--primary-color);
  font-weight: 700;
}

.auth-bottom-link a:hover {
  text-decoration: underline;
}

footer {
  background-color: var(--white-color);
  border-top: 1px solid var(--border-color);
  padding: 18px 0;
}

.footer-bottom {
  text-align: center;
}

footer p {
  color: var(--text-muted);
  font-size: 12px;
}

#message-container,
#totp-message-container {
  margin-bottom: 14px;
}

.message {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  color: var(--primary-color);
  background-color: var(--primary-light);
  border-color: rgba(13, 165, 116, 0.25);
}

.message.error {
  color: #dc2626;
  background-color: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 44px;
}

.toggle-password-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.toggle-password-icon:hover {
  color: var(--dark-color);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--primary-color);
}

.strength-meter {
  margin-top: 8px;
  display: none;
}

.strength-meter.visible {
  display: block;
}

.strength-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.strength-label {
  font-size: 11px;
  font-weight: 700;
}

.password-requirements {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-requirements li {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-requirements li.met {
  color: var(--primary-color);
  font-weight: 600;
}

.match-indicator {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  min-height: 18px;
  font-weight: 600;
}

.state-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 24px;
}

.state-icon.error-icon {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.state-icon.success-icon {
  background: var(--primary-light);
  color: var(--primary-color);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite !important;
  display: inline-block !important;
  flex-shrink: 0;
  vertical-align: middle;
}

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

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fa-spin,
i.fa-spin {
  display: inline-block !important;
  animation: fa-spin 0.85s infinite linear !important;
  transform-origin: center center !important;
}

@media (prefers-reduced-motion: reduce) {
  .fa-spin,
  i.fa-spin {
    animation: fa-spin 0.85s infinite linear !important;
  }
  .spinner,
  .btn-spinner {
    animation: spin 0.8s linear infinite !important;
  }
}

.btn:disabled,
button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  header .brand-word {
    display: none;
  }
}

@media (max-width: 480px) {
  main.auth-main {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .vinculo-selector {
    flex-direction: column;
    gap: 8px;
  }

  .totp-code-input {
    letter-spacing: 8px !important;
    font-size: 1.5rem !important;
  }
}
