@import "global.css";

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
  height: 100vh;
  display: flex;
  overflow: hidden;
}

/* --- LAYOUT DIVIDIDO --- */
.split-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Lado Esquerdo: Imagem e Frase */
.visual-side {
  flex: 0.55; /* Um pouco maior para a imagem */
  background-image: url("../images/password-recovery-bg.jpg"); /* Imagem de neblina/caminho */
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
  color: #fff;
}

/* Overlay escuro para legibilidade */
.visual-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

.quote-container {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.2;
  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.45;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  position: relative;
}

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

.form-header {
  margin-bottom: 40px;
}
.form-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}
.form-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Inputs */
.form-group {
  margin-bottom: 30px;
  position: relative;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 600;
}
.form-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  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);
}

/* Botão */
.btn-submit {
  background-color: var(--primary-color);
  color: #fff;
  width: 100%;
  padding: 18px;
  border: none;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 25px;
  border-radius: 4px;
}
.btn-submit:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Links de Navegação */
.auth-links {
  text-align: center;
  font-size: 0.9rem;
}
.auth-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: 0.3s;
  border-bottom: 1px solid transparent;
}
.auth-links a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Feedback de Sucesso (Oculto inicialmente) */
.success-message {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}
.success-icon {
  font-size: 3rem;
  color: var(--success-green);
  margin-bottom: 20px;
}
.success-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

/* Responsivo */
@media (max-width: 900px) {
  body {
    overflow: auto;
    height: auto;
  }
  .split-container {
    flex-direction: column;
  }

  .visual-side {
    padding: 40px 20px;
    min-height: 250px;
    flex: none;
  }
  .quote-text {
    font-size: 1.5rem;
  }

  .form-side {
    padding: 50px 20px;
    flex: none;
  }
  .logo-link {
    position: static;
    display: block;
    margin-bottom: 30px;
    text-align: center;
  }
  .form-header {
    text-align: center;
  }
}
