/* ========================================
   REMODELAGEM PREMIUM - MoovTur Login
   Aesthetics: Modern, Premium, Professional
======================================== */

:root {
  --primary: #00BACE;
  --primary-dark: #008fa3;
  --secondary: #00ceac;
  --text-main: #1e293b;
  --text-sec: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --error: #ef4444;
  --success: #00ceac;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-premium: 0 10px 40px -10px rgba(0, 186, 206, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  color: var(--text-main);
}

/* ========== BOTÃO VOLTAR FLUTUANTE ========== */
.back-floating {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
}

.back-floating a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(0, 186, 206, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.back-floating a:hover {
  transform: translateX(-5px);
  background: var(--primary);
  color: white;
}

/* ========== WRAPPER E CONTAINER ========== */
.login-wrapper {
  width: 100%;
  max-width: 500px;
  padding: 40px 20px;
}

.login-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  padding: 60px 50px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Cabeçalho do Login */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header .logo {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-header h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.login-header p {
  color: var(--text-sec);
  font-size: 15px;
}

/* ========== FORMULÁRIOS ========== */
.input-row {
  margin-bottom: 22px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding-left: 2px;
}

.input-field {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field i:not(.fa-eye):not(.fa-eye-slash) {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.3s;
}

.input-field input {
  width: 100%;
  padding: 15px 20px 15px 52px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.input-field input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 186, 206, 0.1);
}

.input-field input:focus+i {
  color: var(--primary);
}

/* Esqueceu a senha link */
.forgot-link-area {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
  margin-bottom: 25px;
}

.forgot-link-area a {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: 0.3s;
}

.forgot-link-area a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* VISUALIZAR SENHA */
.toggle-password {
  position: absolute;
  right: 15px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  z-index: 5;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: var(--primary);
}

/* BOTÃO ENTRAR */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 15px rgba(0, 186, 206, 0.2);
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 186, 206, 0.25);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* DIVISOR */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: #f1f5f9;
}

.divider span {
  padding: 0 15px;
}

/* BOTÃO CRIAR CONTA (OUTLINE) */
.btn-secondary {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  color: #475569;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 186, 206, 0.02);
}

/* FOOTER */
.login-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.6;
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ========== MODAL RECUPERAÇÃO ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sec);
  transition: 0.3s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.modal-step h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.modal-step p {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 25px;
}

.btn-modal {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-modal:hover {
  background: var(--primary-dark);
}

/* ========== TOAST PREMIUM ========== */
.premium-toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 14px 28px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  display: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.premium-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.premium-toast.error {
  background: #ef4444;
}

.premium-toast.success {
  background: var(--secondary);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  .login-container {
    padding: 40px 30px;
  }

  .back-floating {
    top: 20px;
    left: 20px;
  }

  .back-floating a span {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 35px 20px;
  }

  .login-header .logo {
    font-size: 34px;
  }
}

/* ==========================================
   MODAL DE VERIFICAÇÃO DE E-MAIL
   ========================================== */
.email-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emailFadeIn 0.3s ease;
}

@keyframes emailFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.email-modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px 35px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  animation: emailSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes emailSlideUp {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.email-modal-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #00bace, #00ceac);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #fff;
}

.email-modal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.email-modal-content p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 6px;
}

.email-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 24px;
  text-align: left;
  font-size: 13px;
  color: #0c4a6e;
}

.email-info-box i {
  font-size: 18px;
  color: #0284c7;
  flex-shrink: 0;
}

.email-btn-ok {
  width: 100%;
  padding: 14px;
  background: #00bace;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 15px rgba(0, 186, 206, 0.2);
}

.email-btn-ok:hover {
  background: #008fa3;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 186, 206, 0.25);
}

.email-state {
  display: none;
}

.email-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e2e8f0;
  border-top-color: #00bace;
  border-radius: 50%;
  animation: emailSpin 0.8s linear infinite;
  margin: 8px auto 20px;
}

@keyframes emailSpin {
  to { transform: rotate(360deg); }
}
