/**
 * Estilos da tela de login do ERP R&S.
 * Baseado na identidade visual atual do sistema.
 */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: var(--rs-background);
}

.auth-card {
  width: 100%;
  max-width: 344px;
  padding: 28px 24px;
  background: var(--rs-surface);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-lg);
  border: 1px solid var(--rs-border);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo img {
  max-width: 72px;
  height: auto;
}

.auth-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rs-text);
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--rs-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

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

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rs-text);
}

.auth-group input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-white);
  color: var(--rs-text);
  font-size: 0.95rem;
  transition: var(--rs-transition);
}

.auth-group input:focus {
  outline: none;
  border-color: var(--rs-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.auth-submit {
  height: 46px;
  border: none;
  border-radius: var(--rs-radius);
  background: var(--rs-primary);
  color: var(--rs-white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--rs-transition);
}

.auth-submit:hover:not(:disabled) {
  background: var(--rs-primary-hover);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-error {
  padding: 10px 12px;
  border-radius: var(--rs-radius);
  background: var(--rs-danger-light);
  color: var(--rs-danger);
  border: 1px solid rgba(220, 38, 38, 0.15);
  font-size: 0.9rem;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--rs-text-muted);
  font-size: 0.8rem;
}

.auth-loading {
  opacity: 0.75;
  pointer-events: none;
}

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

  .auth-title {
    font-size: 1.5rem;
  }
}