:root {
  --bg-main: #121417;
  --bg-card: #1F242A;
  --border: #2A3038;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --success: #22C55E;
  --text-main: #E5E7EB;
  --text-muted: #9CA3AF;
  --danger: #EF4444;
}

* {
  box-sizing: border-box;
  font-family: "Comfortaa", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-wrapper {
  display: flex;
  flex-wrap: wrap;
}

/* ===== CARD COMUM ===== */
.login-card {
  background: var(--bg-card);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  padding: 60px 50px 40px;
  width: 420px;
  min-height: 480px;
  text-align: center;
  transform: translateY(-30px);
  opacity: 0;
  animation: appear 0.6s forwards;
}

/* Card direito inicia com atraso */
.login-card.right {
  animation-delay: 0.3s;
}

/* BORDAS ARREDONDADAS SOMENTE NAS EXTREMIDADES EXTERNAS */
.login-card.left {
  border-radius: 12px 0 0 12px;
}

.login-card.right {
  border-radius: 0 12px 12px 0;
}

/* ===== ANIMAÇÃO ===== */
@keyframes appear {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== TITULOS ===== */
.login-card h1, .login-card h2 {
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.login-card h1 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 600;
}

.login-card h2 {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 500;
}

/* ===== INPUTS ===== */
.login-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #181C20;
  color: var(--text-main);
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
}

.login-card input::placeholder {
  color: var(--text-muted);
}

.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* ===== BOTÃO ===== */
.login-card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.login-card button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59,130,246,0.35);
}

/* ===== MENSAGEM ===== */
#mensagem {
  margin-top: 16px;
  font-size: 13px;
  color: var(--danger);
}

/* ===== RODAPÉ ===== */
.card-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.card-footer span {
  color: var(--primary);
  font-weight: 500;
}

/* ===== CARD DIREITO (LOGIN) ===== */
.right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  overflow: hidden;
}

/* ===== CARD ESQUERDO (MENSAGEM) ===== */
.left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  overflow: hidden;
}

/* ===== LINHAS GEOMÉTRICAS MAIS NUMEROSAS ===== */
.left .line {
  position: absolute;
  height: 2px;
  background: var(--primary);
  opacity: 0.07;
}

.left .line:nth-child(1) {
  top: 30px;
  left: -50px;
  width: 220px;
  transform: rotate(20deg);
}
.left .line:nth-child(2) {
  top: 80px;
  left: 30px;
  width: 180px;
  transform: rotate(-25deg);
}
.left .line:nth-child(3) {
  top: 140px;
  left: -30px;
  width: 200px;
  transform: rotate(45deg);
}
.left .line:nth-child(4) {
  top: 200px;
  left: 50px;
  width: 250px;
  transform: rotate(-15deg);
}
.left .line:nth-child(5) {
  top: 260px;
  left: -40px;
  width: 220px;
  transform: rotate(60deg);
}
.left .line:nth-child(6) {
  bottom: 40px;
  left: 20px;
  width: 180px;
  transform: rotate(-30deg);
}
.left .line:nth-child(7) {
  bottom: 80px;
  left: -50px;
  width: 200px;
  transform: rotate(25deg);
}
.left .line:nth-child(8) {
  top: 100px;
  right: -60px;
  width: 150px;
  transform: rotate(-45deg);
}

.left p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  z-index: 1;
  max-width: 360px;
  text-align: center;
}