/**
 * Estilos da Página de Acesso / Login
 */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--shopee-orange);
  border-bottom-color: var(--shopee-orange);
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.font-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-callout {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--shopee-orange);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-footer-help {
  margin-top: 16px;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--shopee-orange);
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--shopee-orange-hover);
}

.auth-alert {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.auth-alert.error {
  background: var(--danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.hidden {
  display: none !important;
}

.auth-page-footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.auth-page-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.auth-page-footer a:hover {
  text-decoration: underline;
}

/* Password Toggle Eye Button */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .input-field {
  padding-right: 44px;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-toggle-password:hover {
  color: var(--shopee-orange);
}

.btn-toggle-password:active {
  transform: translateY(-50%) scale(0.92);
}

/* Botão Google OAuth */
.btn-google {
  background-color: #ffffff;
  color: #374151;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-google:hover {
  background-color: #f9fafb;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.google-icon {
  flex-shrink: 0;
}

/* Divisor Neutro */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 10px;
}

/* Checklist de Critérios de Segurança da Senha */
.password-rules-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.rules-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rule-item {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.rule-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-strong);
  display: inline-block;
  transition: background-color var(--transition-fast);
}

.rule-item.valid {
  color: #065f46;
  font-weight: 600;
}

.rule-item.valid .rule-bullet {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Modal de Resolução de Dispositivos */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 1;
}

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--shopee-orange);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
  opacity: 1;
  position: relative;
  z-index: 10001;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.warning-icon {
  font-size: 20px;
}

.modal-title-row h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.terminals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  max-height: 240px;
  overflow-y: auto;
}

.terminal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
}

.terminal-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.terminal-time {
  font-size: 11px;
  color: var(--text-dim);
}

.btn-evict {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-evict:hover {
  background-color: var(--shopee-orange-subtle);
  border-color: var(--shopee-orange-border);
  color: var(--shopee-orange);
}

.upgrade-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.font-bold {
  font-weight: 700;
}



