/*----------------------------------------
  HireFlow - Modern Login Page
------------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* overflow: hidden removido — permite scroll em mobile */
}

/* Container Principal - Split Screen */
.hireflow-login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/*----------------------------------------
  Lado Esquerdo - Imagem e Texto
------------------------------------------*/
.hireflow-login-left {
  flex: 1;
  /* Foto de fundo com overlay escuro — fallback para gradiente verde */
  background-color: #0d1f17;
  background-image: url('/css/banner_default.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

/* Overlay escuro sobre a foto (igual ao Figma) */
.hireflow-login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 18, 0.68);
  z-index: 0;
}

.hireflow-login-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.hireflow-login-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin-bottom: 60px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hireflow-login-logo-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hireflow-logo-white {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

/*----------------------------------------
  Lado Direito - Formulário
------------------------------------------*/
.hireflow-login-right {
  flex: 1;
  background: white;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}

.hireflow-login-form-container {
  width: 100%;
  max-width: 440px;
}

/* Logo */
.hireflow-form-logo {
  text-align: center;
  margin-bottom: 32px;
}

.hireflow-logo-img {
  max-width: 200px;
  height: auto;
  display: inline-block;
}

/* Botão Voltar */
.hireflow-back-button {
  margin-bottom: 20px;
}

.hireflow-link-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.hireflow-link-back:hover {
  color: #29604C;
}

/* Título do Formulário */
.hireflow-form-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
}

/* Subtítulo */
.hireflow-form-subtitle {
  font-size: 15px;
  color: #666;
  text-align: center;
  margin-bottom: 32px;
}

/* Formulário */
.hireflow-login-form {
  width: 100%;
}

/* Form Group */
.hireflow-form-group {
  margin-bottom: 20px;
}

/* Label */
.hireflow-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.hireflow-required {
  color: #dc3545;
  margin-left: 2px;
}

/* Input Wrapper (para campos com ícone) */
.hireflow-input-wrapper {
  position: relative;
}

.hireflow-input-wrapper .hireflow-input {
  padding-right: 48px;
}

.hireflow-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Input */
.hireflow-input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  color: #1a1a1a;
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.hireflow-input::placeholder {
  color: #999;
}

.hireflow-input:focus {
  border-color: #29604C;
  box-shadow: 0 0 0 3px rgba(41, 96, 76, 0.1);
}

.hireflow-input-error {
  border-color: #dc3545;
}

.hireflow-input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Password Wrapper */
.hireflow-password-wrapper {
  position: relative;
}

.hireflow-password-wrapper .hireflow-input {
  padding-right: 48px;
}

.hireflow-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.hireflow-password-toggle:hover {
  color: #29604C;
}

/* Error Message */
.hireflow-error-message {
  display: block;
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
}

/* Forgot Password */
.hireflow-forgot-password {
  text-align: right;
  margin-bottom: 24px;
}

.hireflow-link {
  font-size: 14px;
  color: #29604C;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.hireflow-link:hover {
  color: #1e4a3a;
  text-decoration: underline;
}

/* Checkbox Group */
.hireflow-checkbox-group {
  margin-bottom: 24px;
}

.hireflow-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.hireflow-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #29604C;
}

.hireflow-checkbox-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.hireflow-checkbox-text a {
  color: #29604C;
  text-decoration: none;
  font-weight: 500;
}

.hireflow-checkbox-text a:hover {
  text-decoration: underline;
}

/* Botão Primary */
.hireflow-btn-primary {
  width: 100%;
  height: 48px;
  background: #29604C;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.hireflow-btn-primary:hover {
  background: #1e4a3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 96, 76, 0.3);
}

.hireflow-btn-primary:active {
  transform: translateY(0);
}

/* Divider */
.hireflow-divider {
  display: flex;
  align-items: center;
  margin: 28px 0;
  text-align: center;
}

.hireflow-divider::before,
.hireflow-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.hireflow-divider span {
  padding: 0 16px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Social Buttons */
.hireflow-social-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.hireflow-btn-social {
  flex: 1;
  height: 48px;
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.hireflow-btn-social:hover {
  border-color: #29604C;
  background: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Signup Section */
.hireflow-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hireflow-signup span {
  font-size: 14px;
  color: #666;
}

.hireflow-btn-outline {
  height: 40px;
  padding: 0 24px;
  background: white;
  border: 1.5px solid #29604C;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #29604C;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.hireflow-btn-outline:hover {
  background: #29604C;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(41, 96, 76, 0.2);
}

/* Footer */
.hireflow-form-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hireflow-form-footer span {
  font-size: 13px;
  color: #999;
}

.hireflow-logo-footer {
  max-width: 120px;
  height: auto;
}

.hireflow-social-icons {
  display: flex;
  gap: 16px;
}

.hireflow-social-icons a {
  color: #999;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.hireflow-social-icons a:hover {
  color: #29604C;
}

/*----------------------------------------
  Responsivo
------------------------------------------*/
/*----------------------------------------
  Tela de confirmação (Verifique seu e-mail)
------------------------------------------*/
.hireflow-confirmation-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.hireflow-confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EBF5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.hireflow-confirmation-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.hireflow-confirmation-text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.hireflow-confirmation-spam {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 32px;
}

.hireflow-confirmation-back {
  font-size: 15px;
  font-weight: 500;
  color: #29604C;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s;
}

.hireflow-confirmation-back:hover {
  opacity: .75;
  color: #29604C;
}

/*----------------------------------------
  Responsivo
------------------------------------------*/
@media (max-width: 968px) {
  .hireflow-login-container {
    flex-direction: column;
    min-height: 100vh;
  }

  /* Oculta o lado esquerdo em mobile */
  .hireflow-login-left {
    display: none;
  }

  .hireflow-login-right {
    overflow-y: auto;
    min-height: 100vh;
    padding: 32px 24px;
  }

  .hireflow-login-form-container {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hireflow-social-buttons {
    flex-direction: column;
  }

  .hireflow-signup {
    flex-direction: column;
    gap: 8px;
  }

  .hireflow-logo-img {
    max-width: 160px;
  }

  .hireflow-logo-footer {
    max-width: 100px;
  }
}
