/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.page-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
}

.advertisement {
  width: 75%;
  height: 100%;
  position: relative;
}

.advertisement img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advertisement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.advertisement-text {
  position: absolute;
  top: 70%;
  left: 40%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  padding: 1rem;
  max-width: 80%;
}

.advertisement-text h1 {
  font-size: 60px;
  margin-bottom: 1rem;
  text-align: left;
}

.advertisement-text p {
  font-size: 22px;
  text-align: left;
}

.login-container {
  width: 25%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
}

.form-box {
  width: 100%;
  max-width: 300px;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo-box img {
  max-width: 150px;
  height: auto;
}

.input-group {
  margin-bottom: 1.2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #ff2d00;
  outline: none;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background: #ff2d00;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #ff2d00;
}

.message {
  text-align: center;
  margin-top: 1rem;
  color: #555;
}

.message a {
  color: #ff2d00;
  text-decoration: none;
  font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }

  .page-wrapper {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .advertisement {
    width: 100%;
    height: auto;
    position: relative;
  }

  .advertisement img {
    height: 250px;
  }

  .advertisement-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    max-width: 90%;
  }

  .advertisement-text h1 {
    font-size: 32px;
    text-align: center;
  }

  .advertisement-text p {
    font-size: 16px;
    text-align: center;
  }

  .login-container {
    width: 100%;
    height: auto;
    padding: 2rem 1.5rem;
    box-shadow: none;
  }

  .logo-box img {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .advertisement img {
    height: 200px;
  }

  .advertisement-text h1 {
    font-size: 24px;
  }

  .advertisement-text p {
    font-size: 14px;
  }

  .logo-box img {
    max-width: 100px;
  }

  .form-box {
    max-width: 100%;
  }

  .input-group input {
    padding: 0.65rem;
  }

  button[type="submit"] {
    padding: 0.65rem;
  }
}

