
/* ===== Root main.css — Sidebar restored, layout tuned ===== */

/* --- GLOBAL --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  color: #1C1F22;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}


a { color: #1C3C34; text-decoration: none; }
a:hover { text-decoration: underline; }

.assistant-wrapper {
  display: grid;
  grid-template-columns: 18.000rem 1fr; /* restore original width */
  min-height: 100vh;
}

.sidebar {
   background: #0F1214; 
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand img {
  width: 3.750rem;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand .name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0;
}

.brand .tagline {
  color: #d6a756;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  margin-top: 0.250rem;
  text-transform: uppercase;
}

/* --- HEADER (no dividing line) --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fafafa;
  height: 3.500rem;
  padding: 0 1.25rem;
  position: relative;
  border-bottom: none; /* removed line */
}
.menu-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 1.750rem;
  cursor: pointer;
}
.menu-btn:hover { color: #1C3C34; }
.dropdown-menu {
  position: absolute;
  right: 1rem;
  top: 3.750rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  box-shadow: 0 0.250rem 0.750rem rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 100;
}
.dropdown-menu a { padding: 0.5rem 1.2rem; color: #333; font-size: 0.95rem; }
.dropdown-menu a:hover { background: #f6f6f6; color: #1C3C34; }
.hidden { display: none; }

/* --- PAGE CONTENT --- */
.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6rem;   /* pushes content slightly downward */
  min-height: calc(100vh - 12rem); /* ensures footer stays anchored visually */
  flex: 1;           /* pushes footer to the bottom on short pages */
  padding-top: 4rem;
}

/* Billboard top line only */
.login-billboard {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #5e5e5e; 
  margin: 0 0 3rem 0;
  line-height: 1.3;
}
.billboard-subtext {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #666;
  max-width: 70ch;
  margin: 3rem auto 2rem auto;
  line-height: 1.5;
}

/* --- DEVELOPED TEXT POLISH --- */
.developed-text {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  max-width: 70ch;
  margin: 4rem auto 3rem; /* cleaner spacing before footer */
  line-height: 1.6;
  letter-spacing: 0.015em;
}


/* --- LOGIN CARD --- */
.auth-card.login {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.750rem;
  padding: 2rem;
  max-width: 22.500rem;
  width: 100%;
  box-shadow: 0 0.188rem 0.625rem rgba(0,0,0,0.05);
  transform: scale(0.9);     /* visually reduce everything by 10% */
  transform-origin: top center;
}
.auth-card.login h2 { text-align: center; margin-top: 0; }
.auth-card.login form { display: flex; flex-direction: column; gap: 0.8rem; }
.auth-card.login input {
  padding: 0.6rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* --- Cadastro Page adjustments --- */
.cadastro-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  margin-top: 4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.cadastro-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cadastro-wrapper input[type="text"],
.cadastro-wrapper input[type="email"],
.cadastro-wrapper input[type="password"],
.cadastro-wrapper input[type="tel"],
.cadastro-wrapper input[type="date"] {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.termos-container {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #444;
}

#btn-cadastrar {
  background-color: #2a604f;
  color: #fff;
  border: none;
  padding: 0.7rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

#btn-cadastrar:disabled {
  background-color: #b0b0b0;
  cursor: not-allowed;
}


/* Eye perfectly centered */
.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input[type="password"], .password-wrap input[type="text"] {
  flex: 1; padding-right: 2.500rem; box-sizing: border-box;
}
.password-wrap #togglePwd {
  position: absolute; right: 0.625rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.375rem; color: #555;
}

/* Buttons */
.btn-primary {
  background-color: #2a604f; color: #fff; border: none; padding: 0.7rem;
  border-radius: 0.500rem; font-size: 1rem; cursor: pointer;
}
.btn-primary:hover { background-color: #1f4b3c; }

/* Auth meta: stacked links, centered, with spacing */
.auth-meta.stacked {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.500rem; margin-top: 1.5em;
}
.auth-meta.stacked a { color: #1C3C34; }

/*---------------------*/
/* Footer darker green */
/*---------------------*/

/* --- FOOTER (anchored, professional style) --- */
.site-footer {
  background: #1C3C34;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto; /* sits at bottom after content */
}
.footer-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.3rem;
}

.footer-column a {
  color: #eaeaea;
  text-decoration: none;
}

.footer-column a:hover {
  color: #d6a756;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.9;
}
/* --- Polished Instagram link hover + overall balance --- */
.footer-bottom a {
  color: #d6a756;
  text-decoration: none;
  margin: 0 0.25rem;
}
.footer-bottom a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

@media (max-width: 48em) {
  .footer-bottom {
    font-size: 0.75rem;
    padding-bottom: 1rem;
  }
}

/*----------------------------------*/
/* --- CADASTRO PAGE LAYOUT  --- */
/*---------------------------------*/
body[data-page="cadastro"] .page-content {
  justify-content: flex-start;
  padding-top: 3rem;          /* less empty space above */
  padding-bottom: 4rem;       /* ensures footer doesn’t overlap */
  min-height: calc(100vh - 8rem);
}

body[data-page="cadastro"] .cadastro-wrapper {
  margin-top: 2rem;           /* tighter vertical balance */
  transform: scale(0.95);     /* harmonizes proportions with login */
  transform-origin: top center;
}

/* --- Password field polish --- */
.cadastro-wrapper .password-info {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  line-height: 1.4;
}

input[type="password"]:invalid {
  border-color: #d66;
}

input[type="password"]:valid {
  border-color: #2a604f;
}
/* --- Refined password policy --- */
.password-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.password-info ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.3rem 0 0;
}
.password-info .sub-list {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: #666;
}
.password-info li {
  margin-bottom: 0.25rem;
}
.password-info .check {
  color: #d6a756;
  font-weight: bold;
  margin-right: 0.25rem;
}

/* --- Password strength badges --- */
.pwd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.pwd-badges span {
  padding: 0.25rem 0.55rem;
  border-radius: 0.5rem;
  background: #f2f2f2;
  color: #555;
  transition: all 0.2s ease-in-out;
  user-select: none;
}

/* unmet → red, met → green */
.pwd-badges span.bad { 
  background: #ffeaea;
  color: #c62828;
}

.pwd-badges span.ok { 
  background: #e6f4ea;
  color: #2e7d32;
}

/*----------------------*/
/*--- NOVA SENHA PAGE --*/
/**---------------------*/

/* --- Auth Card Layout (Cadastro, Nova Senha, etc.) --- */
.auth-card {
  background: #fff;
  max-width: 28rem;
  width: 90%;
  margin: 3rem auto;
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.auth-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.auth-card .field {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.auth-card .btn {
  background: #1C3C34;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.auth-card .btn:hover {
  background: #2a5249;
}

.auth-card .back {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #1C3C34;
}

.auth-card .msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.auth-card .msg.err {
  color: #b3261e;
}


/*----------------------*/
/*--- RESET SENHA PAGE --*/
/**---------------------*/

/* --- Reset Password Page Adjustments --- */
.reset-card {
  max-width: 26rem;
  padding: 2rem 2.5rem;
  text-align: center;
}

.reset-card p {
  white-space: nowrap;           /* keeps single-line messages like “Informe seu e-mail...” */
  overflow-wrap: break-word;     /* allows wrapping only if absolutely needed */
  margin-bottom: 1.5rem;
}

.reset-card form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.reset-card input[type="email"] {
  width: 65%;
  min-width: 12rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

.reset-card button {
  background: #1C3C34;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.reset-card button:hover {
  background: #2a5249;
}

.reset-card a {
  margin-top: 1rem;
  display: inline-block;
  color: #e67e00;
  font-weight: 500;
}
