/* =========================
   MoodSnap Login (Final)
   Paleta:
   Primary: #2563EB
   Hover:   #1D4ED8
   Bg:      #F3F4F6
   Text:    #111827
   Muted:   #6B7280
   Border:  #E5E7EB
========================= */


body.login-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f1f5f9;
  font-family: 'Inter', Arial, sans-serif;
}

/* ===== Layout central (estilo Facebook, sem cara de cópia) ===== */
.moodsnap-layout {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  min-height: 100vh;

  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 88px;
}

/* ===== BRAND (FORA do @media) ===== */
.brand {
  display: flex;
  align-items: center;    /* alinha verticalmente */
  gap: 14px;              /* espaço entre ícone e nome */
  font-family: Helvetica, Arial, sans-serif;
  margin: 0 0 14px 0;
}

.brand .moodsnap-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 1.7rem !important;
}

.brand .moodsnap-logo-mark-image {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand .moodsnap-brand-text {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.brand-icon {
  width: 122px;            /* tamanho ideal */
  height: auto;
  display: block;
  flex: 0 0 auto;         /* não deixa “espremer” */
}

.brand-name {
  margin: 0;
  font-size: 4.3rem;      /* igual seu H1 anterior */
  font-weight: 800;
  letter-spacing: -2px;
  color: #2563EB;
  line-height: 1;         /* evita desalinhamento */
}

/* ===== Esquerda ===== */
.moodsnap-info {
  flex: 1 1 auto;
  max-width: 560px;
  padding-left: 0;
  color: #111827;
}

/* se você ainda tiver h1 solto no HTML, isso mantém compatível */
.moodsnap-info h1 {
  font-size: 4.3rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0 0 14px 0;
  color: #2563EB;
}

.moodsnap-info p {
  font-size: 1.25rem;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 0 8px 0;
  max-width: 520px;
  color: #111827;
}

/* imagem */
.moodsnap-hero {
  width: 510px;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
}

/* ===== Card Login ===== */
 .login-container {
   border-radius: 2.2rem;
   box-shadow: 0 14px 40px rgba(168, 85, 247, 0.10), 0 2px 8px #f43f5e22;
   padding: 2.5rem 2.5rem 2rem 2.5rem;
   background: #fff;
   border: 1px solid #f3e8ff;
   width: 700px !important;
   max-width: 700px !important;
   min-width: 350px;
   display: flex;
   flex-direction: column;
   align-items: stretch;
   margin: 0 auto;
   transition: box-shadow 0.25s, transform 0.25s;
 }

.login-container--signup {
  margin-top: -18px;
}
body.login-page {
  background: #f1f5f9 !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #a855f7 0%, #f43f5e 100%);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.13);
  padding: 0.5rem;
  object-fit: contain;
}
.brand-name {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #a855f7 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}
.moodsnap-benefits {
  margin: 0.8rem 0 1.5rem 0;
  padding: 0;
  list-style: none;
}
.moodsnap-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.13rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s;
}
.moodsnap-benefits li:hover {
  color: #a855f7;
  transform: scale(1.04);
}
.moodsnap-benefits .icon {
  font-size: 1.3em;
  display: inline-block;
  transition: color 0.2s, transform 0.2s;
}
.moodsnap-benefits .icon-img { color: #a855f7; }
.moodsnap-benefits .icon-key { color: #f59e42; }
.moodsnap-benefits .icon-emoji { color: #f43f5e; }
.moodsnap-quote {
  font-style: italic;
  color: #a855f7;
  font-size: 1.25rem;
  margin-top: 2.2rem;
  font-weight: 500;
  text-shadow: 0 2px 8px #fff6;
}
.login-container:hover,
.login-container:focus-within {
  box-shadow: 0 18px 55px #a855f733, 0 4px 16px #f43f5e22;
  transform: translateY(-6px) scale(1.01);
}
.login-container h2 {
  text-align: center;
  color: #111827;
  margin: 0 0 0.5rem 0;
  font-weight: 800;
  font-size: 2.1rem;
}

.login-container .auth-welcome-title {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.login-container .subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
}

.guest-auth-page {
  min-height: 100vh;
}

.guest-locale-switcher {
  position: fixed;
  left: 54px;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 108px;
  padding: 0.28rem 0.9rem;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.11);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.guest-locale-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.guest-locale-switcher__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.guest-locale-select {
  width: 100%;
  min-width: 56px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  border-radius: 999px;
  padding: 0;
  padding-right: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #cbd5e1 50%), linear-gradient(135deg, #cbd5e1 50%, transparent 50%);
  background-position: calc(100% - 9px) calc(50% - 1px), calc(100% - 4px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: color 0.18s;
}

.guest-locale-select:focus {
  color: #64748b;
}

.guest-locale-select:disabled {
  opacity: 0.7;
}
.login-container input[type="email"],
.login-container input[type="password"] {
  border-radius: 1.2rem;
  background: #f8fafc;
  font-size: 1.08rem;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid #e0e7ff;
  margin-bottom: 1.1rem;
  transition: border 0.18s, box-shadow 0.18s, background 0.18s;
}
.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
  border-color: #a855f7;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px #a855f722;
}
.login-container input[type="email"]::placeholder,
.login-container input[type="password"]::placeholder {
  color: #bdb6d6;
  opacity: 1;
}
.login-container label {
  color: #111827;
  font-weight: 700;
  font-size: 1.01rem;
  margin-bottom: 0.3rem;
}
.login-container .actions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.login-container input[type="submit"] {
  background: linear-gradient(90deg, #a855f7 0%, #f43f5e 100%);
  color: #fff;
  border: none;
  border-radius: 2.2rem;
  padding: 1.1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px #a855f722;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.login-container input[type="submit"]:hover {
  background: linear-gradient(90deg, #f43f5e 0%, #a855f7 100%);
  box-shadow: 0 12px 28px #f43f5e33;
  transform: translateY(-2px) scale(1.02);
}
.login-container .forgot a {
  color: #a855f7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}
.login-container .forgot a:hover {
  color: #f43f5e;
  text-decoration: underline;
}
.btn-secondary {
  background: linear-gradient(90deg, #a855f7 0%, #f43f5e 100%);
  color: #a855f7 !important;
  font-weight: 700;
  border-radius: 2rem;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  transition: background 0.18s, transform 0.18s;
  font-size: 1.05rem;
  padding: 1.1rem 0;
}
.btn-secondary:hover {
  background: linear-gradient(90deg, #f43f5e 0%, #a855f7 100%);
  transform: translateY(-2px) scale(1.02);
}
.login-container .divider {
  color: #a855f7;
  font-weight: 600;
  margin: 1.2rem 0 1rem 0;
}
.social-login a {
  border-radius: 1.2rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1.5px solid #e0e7ff;
  color: #111827;
  transition: background 0.15s, border 0.15s, transform 0.15s;
}
.social-login a:hover {
  background: #f3e8ff;
  border-color: #a855f7;
  transform: translateY(-1px) scale(1.01);
}
@media (max-width: 980px) {
  .moodsnap-layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 28px;
    padding: 24px;
  }
  .brand {
    justify-content: center;
  }
  .brand .moodsnap-brand-text {
    font-size: 2.5rem;
  }
  .brand .moodsnap-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 1.3rem !important;
  }
  .login-container {
    width: 100%;
    max-width: 420px;
  }

  .guest-locale-switcher {
    left: 18px;
    bottom: 18px;
    min-width: 102px;
    padding: 0.24rem 0.78rem;
  }
}

.login-container:hover,
.login-container:focus-within {
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.16);
  transform: translateY(-6px);
}

.login-container h2 {
  text-align: center;
  color: #111827;
  margin: 0 0 1.5rem 0;
  font-weight: 800;
  font-size: 2.1rem;
}

/* ===== Form ===== */
.login-container label {
  color: #1D4ED8;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  box-sizing: border-box;

  padding: 0.75rem 1rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  font-size: 1rem;
  background: #F9FAFB;
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
  border-color: #2563EB;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.login-container .actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

/* ===== Botão principal ===== */
.login-container input[type="submit"] {
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.login-container input[type="submit"]:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* ===== Links ===== */
.login-container .forgot {
  margin-bottom: 0.7rem;
}

.login-container .forgot a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.login-container .forgot a:hover {
  text-decoration: underline;
}

.login-container .divider {
  margin: 1.2rem 0 1rem 0;
  color: #6B7280;
  font-weight: 600;
}

/* ===== Botão cadastro ===== */
.btn-secondary {
  background: #0F766E;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 0;
  width: 100%;
  margin-bottom: 0.7rem;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

/* ===== Social ===== */
.login-container .social-login a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  margin-bottom: 0.55rem;
  font-size: 1rem;

  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #111827;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;

  transition: background 0.15s ease, border 0.15s ease, transform 0.15s ease;
}

.login-container .social-login a:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  transform: translateY(-1px);
}

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .moodsnap-layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 28px;
    padding: 24px;
  }

  .moodsnap-info {
    max-width: 650px;
  }

  .moodsnap-info p {
    margin-left: auto;
    margin-right: auto;
  }

  .login-container {
    width: 100%;
    max-width: 420px;
  }

  .brand {
    justify-content: center; /* centraliza logo + nome no mobile */
  }

  .brand .moodsnap-brand-text {
    font-size: 2.5rem; /* reduz no mobile */
  }

  .brand .moodsnap-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 1.3rem !important;
  }
}

.cadastre-link {
  color: #a855f7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
}
.cadastre-link:hover {
  color: #f43f5e;
  text-decoration: underline;
}

.auth-card-header {
  text-align: center;
}

.login-container .auth-recovery-title {
  margin: 0 0 0.55rem;
  color: #111827;
  font-size: 1.58rem;
  font-weight: 800;
  line-height: 1.05;
}

.auth-recovery-copy {
  margin: 0 0 1.1rem;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.35rem;
  margin: 0 0 1.15rem;
  border-radius: 999px;
  background: #f5f3ff;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: #7c3aed;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.auth-tab--active {
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.12);
}

.auth-form-title {
  margin: 0 0 0.5rem;
  color: #a855f7;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.auth-input {
  width: 100%;
}

.auth-actions {
  margin-top: 0.35rem;
}

.auth-submit {
  width: 100%;
}

.login-fields {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.input-wrapper {
  width: 100%;
  min-height: 72px;
  border: 2px solid #dfe5ec;
  border-radius: 18px;
  background: #f8fbfd;
  display: flex;
  align-items: center;
  padding: 0 1.1rem;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-wrapper:focus-within {
  border-color: #a855f7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

.input-wrapper-confirmation {
  border-color: #ef4444;
  background: #fff5f5;
}

.input-wrapper-confirmation:focus-within {
  border-color: #dc2626;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8494;
  font-size: 1.3rem;
  margin-right: 0.85rem;
  flex: 0 0 auto;
}

.auth-input-field {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  border: none !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  color: #1f2937;
  font-size: 1.3rem !important;
  line-height: 1.2;
}

.auth-input-field::placeholder {
  color: #a8aec0 !important;
  font-weight: 600;
}

.eye-button {
  border: none;
  background: transparent;
  color: #7b8494;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 0.85rem;
  flex: 0 0 auto;
}

.eye-button:hover,
.eye-button:focus-visible {
  color: #a855f7;
}

.auth-submit-button {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 1rem;
  padding: 0.9rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.auth-submit-button:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transform: translateY(-2px);
}

.auth-footer-link {
  color: #a855f7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s;
  display: block;
  text-align: center;
  margin-top: 20px;
}

.auth-footer-link:hover,
.auth-tab:hover {
  color: #f43f5e;
}

.auth-tab--active:hover {
  color: #111827;
}

/* ===== Responsive fixes for narrow desktop / tablet widths ===== */
.moodsnap-layout {
  gap: clamp(14px, 2.4vw, 38px);
}

.login-container {
  width: min(100%, 700px) !important;
  min-width: 0;
}

.moodsnap-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.moodsnap-benefits li {
  justify-content: center;
  min-height: 72px;
  margin-bottom: 0;
  padding: 0.85rem 0.65rem;
  text-align: center;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(224, 231, 255, 0.95);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.08);
}

@media (min-width: 761px) {
  .moodsnap-benefits {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .moodsnap-benefits__item--wide {
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .moodsnap-layout {
    gap: 28px;
    padding: 24px;
  }

  .login-container {
    max-width: 560px !important;
    padding: 2rem 1.6rem 1.5rem;
  }

  .login-container--signup {
    margin-top: -10px;
  }
}

@media (max-width: 820px) {
  .moodsnap-layout {
    min-height: auto;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 16px 88px;
    gap: 22px;
  }

  .moodsnap-info,
  .login-container {
    width: 100% !important;
    max-width: 42rem !important;
    margin-left: auto;
    margin-right: auto;
  }

  .moodsnap-info {
    padding-left: 0;
  }

  .brand {
    margin-bottom: 1rem;
  }

  .brand .moodsnap-brand-text {
    font-size: clamp(2.8rem, 10vw, 3.5rem);
  }

  .moodsnap-info p {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 1.35rem;
  }

  .login-container {
    padding: 2.2rem 1.35rem 1.65rem;
    border-radius: 1.9rem;
  }

  .login-container--signup {
    margin-top: 0;
  }

  .login-container h2 {
    font-size: clamp(2.9rem, 10vw, 3.8rem);
    line-height: 0.98;
    margin-bottom: 0.7rem;
  }

  .login-container .auth-recovery-title {
    font-size: 1.34rem;
    line-height: 1.08;
    margin-bottom: 0.45rem;
  }

  .login-container .auth-welcome-title {
    font-size: 1.15rem;
    line-height: 1.1;
    margin-bottom: 0.3rem;
  }

  .login-container .subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
  }

  .login-fields {
    gap: 0.95rem;
  }

  .input-wrapper {
    min-height: 58px;
    border-radius: 14px;
    padding: 0 1rem;
  }

  .auth-input-field {
    font-size: 1.05rem !important;
  }

  .login-container .forgot {
    margin: 0.15rem 0 1rem;
    text-align: center;
  }

  .auth-submit-button {
    padding: 1rem 0;
    font-size: 1.08rem;
    border-radius: 1.1rem;
  }

  .input-icon,
  .eye-button {
    font-size: 1.1rem;
  }

  .auth-footer-link {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .moodsnap-benefits li {
    min-height: 64px;
    padding: 0.7rem 0.45rem;
    font-size: 0.92rem;
  }

  .auth-tabs {
    gap: 0.45rem;
  }

  .auth-tab {
    min-height: 2.65rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 540px) {
  .moodsnap-layout {
    padding-left: 14px;
    padding-right: 14px;
  }

  .moodsnap-benefits {
    gap: 0.55rem;
  }

  .moodsnap-benefits li {
    flex-direction: column;
    gap: 0.3rem;
    min-height: 82px;
    padding: 0.65rem 0.3rem;
    font-size: 0.84rem;
    line-height: 1.2;
  }

  .login-container {
    padding: 1.9rem 1.1rem 1.45rem;
  }

  .login-container--signup {
    margin-top: 0;
  }

  .input-wrapper {
    padding: 0 0.9rem;
  }
}
