@import "global.css";

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden; /* Evita rolagem na tela de login */
}

.container {
  display: flex;
  height: 100%;
  width: 100%;
}

/* --- LADO ESQUERDO (VISUAL) --- */
.visual-side {
  flex: 1; /* Ocupa 50% ou mais */
  background-image: url("../images/login-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}

/* Filtro escuro sobre a imagem */
.visual-side::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.quote-container {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 500px;
  animation: fadeIn 1.5s ease;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 20px;
  font-style: italic;
}

.quote-author {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-author::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  background-color: #fff;
}

/* --- LADO DIREITO (FORMULÁRIO) --- */
.form-side {
  flex: 0.8; /* Um pouco menor que a imagem em telas grandes */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 100px;
  position: relative;
}

.logo {
  position: absolute;
  top: 40px;
  left: 100px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
  color: var(--primary-color);
  text-decoration: none;
}

.login-content {
  max-width: 400px;
  width: 100%;
  animation: slideUp 1s ease;
}

.login-content .paceful-form-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.login-content .paceful-form-subtitle {
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 0.95rem;
}

/* Estilo dos Inputs (Editorial) */
.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ddd;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--primary-color);
  background: transparent;
  transition: 0.3s;
  outline: none;
}

.form-input:focus {
  border-bottom-color: var(--accent-color);
}

/* Ícone de olho para senha */
.password-toggle {
  position: absolute;
  right: 0;
  bottom: 10px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Links e Botões */
.forgot-pass {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 30px;
  text-decoration: underline;
}
.forgot-pass:hover {
  color: var(--accent-color);
}

.btn-login {
  width: 100%;
  padding: 18px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-login:hover {
  background-color: var(--accent-color);
}

.signup-link {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
}

.signup-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.signup-link a:hover {
  border-bottom-color: var(--primary-color);
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
  /* No tablet/mobile, a imagem some ou fica pequena. 
        Para login, geralmente é melhor focar no form. */
  .visual-side {
    display: none;
  }

  .form-side {
    flex: 1;
    padding: 40px;
  }

  .logo {
    top: 30px;
    left: 40px;
  }

  .login-content .paceful-form-title {
    font-size: 2rem;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
