@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #5b6ded 0%, #4f46e5 100%);
  padding: clamp(12px, 5vw, 20px);
}

.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 1000px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Lado esquerdo - Recursos */
.features-side {
  background: linear-gradient(135deg, #5b6ded 20%, #4f46e5 80%);
  color: white;
  padding: clamp(30px, 8vw, 50px) clamp(20px, 6vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 15px);
  margin-bottom: clamp(30px, 8vw, 50px);
}

.logo {
  width: clamp(100px, 20vw, 160px);
  height: clamp(100px, 20vw, 160px);
  background: transparent;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(40px, 10vw, 70px);
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  font-family: "Poppins", sans-serif;
}

.features-list {
  list-style: none;
  margin-top: clamp(15px, 4vw, 20px);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 15px);
  margin-bottom: clamp(20px, 5vw, 35px);
  font-size: clamp(14px, 3vw, 18px);
  line-height: 1.5;
  opacity: 0.9;
  transition: transform 0.1s ease;
}

.feature-item:hover {
  transform: translateX(5px);
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Lado direito - Login/Registro */
.auth-side {
  padding: clamp(30px, 8vw, 50px) clamp(20px, 6vw, 40px);
  background: white;
}

.auth-title {
  font-size: clamp(24px, 6vw, 32px);
  color: #333;
  margin-bottom: clamp(8px, 2vw, 10px);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.form-group {
  margin-bottom: clamp(18px, 4vw, 25px);
}

.form-input.error {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

.field-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

.message {
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: 14px;
  text-align: center;
  display: none;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}
.form-label {
  display: block;
  margin-bottom: clamp(6px, 1.5vw, 8px);
  color: #333;
  font-weight: 500;
  font-size: clamp(16px, 3vw, 20px);
}

.form-input {
  width: 100%;
  padding: clamp(12px, 3vw, 15px);
  border: 2px solid #333;
  border-radius: 10px;
  font-size: clamp(16px, 3vw, 20px);
  transition: border-color 0.1s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #5b6ded;
}

.btn-login {
  width: 100%;
  padding: clamp(12px, 3vw, 15px);
  background: #5b6ded;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.1s ease;
  margin-bottom: clamp(12px, 3vw, 15px);
}

.btn-login:hover {
  background: #4f46e5;
}

.btn-create {
  width: 100%;
  padding: clamp(12px, 3vw, 15px);
  background: #10b981;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.btn-create:hover {
  background: #059669;
}

.divider {
  text-align: center;
  margin: clamp(15px, 3vw, 20px) 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #d1d5db;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: white;
  padding: 0 clamp(6px, 2vw, 10px);
  color: #333;
  font-size: clamp(18px, 4vw, 25px);
}

/* Links */
a {
  text-decoration: none;
  display: block;
}

/* Responsividade */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .features-side {
    padding: clamp(25px, 6vw, 40px) clamp(15px, 5vw, 30px);
  }

  .auth-side {
    padding: clamp(25px, 6vw, 40px) clamp(15px, 5vw, 30px);
  }

  .logo-area {
    margin-bottom: clamp(25px, 6vw, 40px);
    flex-direction: column;
    text-align: center;
  }

  .logo {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
  }

  .brand-name {
    font-size: clamp(32px, 8vw, 50px);
  }

  .feature-item {
    font-size: clamp(13px, 2.5vw, 16px);
    margin-bottom: clamp(18px, 4vw, 30px);
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    border-radius: 12px;
  }

  .features-side {
    padding: 20px 15px;
    min-height: auto;
  }

  .auth-side {
    padding: 20px 15px;
  }

  .logo-area {
    margin-bottom: 20px;
  }

  .logo {
    width: 70px;
    height: 70px;
  }

  .brand-name {
    font-size: 28px;
  }

  .auth-title {
    font-size: 24px;
  }

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

  .feature-item {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .btn-login,
  .btn-create {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  .container {
    border-radius: 8px;
  }

  .features-side {
    padding: 15px 12px;
  }

  .auth-side {
    padding: 15px 12px;
  }

  .brand-name {
    font-size: 22px;
  }

  .logo {
    width: 60px;
    height: 60px;
  }
}
