/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('background-login.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Container principal */
.login-container {
  display: flex;
  flex-direction: row;
  width: 90%;
  max-width: 800px;
  background-color: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Lados esquerdo e direito */
.login-left,
.login-right {
  width: 50%;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-left {
  color: #bdb08d;
  text-align: center;
  background-color: #393939;
}

.login-left .logo {
  max-width: 290px;
  margin-bottom: 1.5rem;
}

.titulo-principal {
  text-align: center;
  width: 100%;
}

.logo-texto {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
}

.login-right {
  background-color: #fafafa;
}

.login-form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form h2 {
  text-align: center;
  color: #000;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.subtexto {
  font-size: 0.95rem;
  color: #888;
  margin-top: -10px;
  margin-bottom: 1.25rem;
  word-break: break-word;
  text-align: center;
}

.login-form label {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.3rem;
}

.login-form input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: #948c6c;
}

.login-form button {
  background: linear-gradient(135deg, #1e1e1e, #bdb08d);
  color: #ffffff;
  padding: 0.85rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-form button:hover {
  background: linear-gradient(135deg, #1e1e1e, #d1c597);
}

.forgot {
  margin-top: 1rem;
  text-align: center;
}

.forgot a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot a:hover {
  text-decoration: underline;
}

/* Responsivo - Tablet */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    margin: 1rem;
    border-radius: 20px;
  }

  .login-left,
  .login-right {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .login-left {
    border-radius: 20px 20px 0 0;
  }

  .login-right {
    border-radius: 0 0 20px 20px;
  }

  .login-left .logo {
    max-width: 200px;
  }

  .logo-texto {
    max-width: 80%;
  }

  .login-form {
    max-width: 100%;
  }
}

/* Responsivo - Celular */
@media (max-width: 480px) {
  .login-form h2 {
    font-size: 1.2rem;
  }

  .subtexto {
    font-size: 0.8rem;
  }

  .login-left .logo {
    max-width: 150px;
  }

  .logo-texto {
    max-width: 70%;
  }

  .login-form input,
  .login-form button {
    font-size: 0.9rem;
  }

  .login-form label {
    font-size: 0.85rem;
  }
}
