* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #FBFBFB;
  color: #111;
}

/* layout geral */
.shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0px;
  padding-left: 40px;
  position: relative;
}

/* card */
.card {
  width: 340px;
  height: 400px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* topo */
.logo-area {
  text-align: center;
}

.logo-img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.logo-text {
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 700;
  margin-top: 8px;
}

.subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: #2e2e2e;
}

/* campos */
.fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.field input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 2px;
  font-size: 13px;
  background: transparent;
  outline: none;
}

.field input:focus {
  border-bottom: 1px solid #000000;
}

/* botão */
.btn {
  height: 38px;
  border: none;
  border-radius: 19px;
  background-color: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.25s ease, transform 0.1s ease;
  width: 100%;
}

.btn:hover {
  background-color: #1a1a1a;
}

.btn:active {
  background-color: #232323;
}

/* erro */
.error {
  min-height: 14px;
  text-align: center;
  color: #7a0210;
  font-size: 11px;
  font-weight: 600;
}

/* coluna direita */
.right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 20px;
}

.right-placeholder {
  width: min(540px, 60vw);
  height: min(420px, 70vh);
  border-radius: 18px;
  background-image: url("../assets/bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
}


/* rodapé */
.footer {
  position: absolute;
  left: 46px;
  bottom: 40px;
  color: #494949;
  font-size: 13px;
}

/* fundo externo (simula desktop) */
body {
  background-color: #FBFBFB;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* frame fixo (igual PySide setFixedSize) */
.app-frame {
  width: 960px;
  height: 540px;
  background-color: #FBFBFB;
  border-radius: 0px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  position: relative;
}

/* Mensagem de inatividade */
.inactivity-msg {
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 11px;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.inactivity-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Loading State do Botão ---- */

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.btn:disabled:hover {
  background-color: #000000;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.8s linear infinite;
  flex-shrink: 0;
}

.btn-check {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-check::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-left: 3px;
}

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

@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-4px); }
  30% { transform: translateX(4px); }
  50% { transform: translateX(-3px); }
  70% { transform: translateX(3px); }
  90% { transform: translateX(-2px); }
}

.btn-shake {
  animation: btnShake 0.4s ease-in-out;
}

.btn-success {
  opacity: 1 !important;
}

