/* ========================================================= RESET ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================================= VARIÁVEIS ========================================================= */

:root {
  --bg-page: #f7f9f8;

  --dark: #1f2a35;
  --dark-secondary: #22313d;

  --green: #005f55;
  --green-dark: #005846;
  --green-soft: rgba(0, 95, 85, 0.08);

  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #7b8794;

  --border-color: #dce5e2;
  --input-border: #d4dedb;
  --input-bg: #ffffff;
  --placeholder: #8795a8;

  --card-bg: #ffffff;
  --card-width: 435px;

  --radius-card: 16px;
  --radius-input: 10px;
  --radius-button: 9px;

  --shadow-card: 0 20px 45px rgba(31, 42, 53, 0.08);
}

/* ========================================================= BASE ========================================================= */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================================= LAYOUT PRINCIPAL ========================================================= */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 50% 50%;
  background: var(--bg-page);
}

/* ========================================================= PAINEL ESQUERDO ========================================================= */

.login-brand-panel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #202b35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
  pointer-events: none;
}

.login-brand-content {
  position: relative;
  width: min(100%, 430px);
  color: #ffffff;
  transform: translate(-10px, -10px);
}

.login-brand-line {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: var(--green);
  margin-bottom: 2.15rem;
}

.login-brand-content h1 {
  font-size: clamp(2.3rem, 3.45vw, 3.25rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.85rem;
}

.login-brand-content h1 strong {
  color: var(--green);
  font-weight: 600;
}

.login-brand-content p {
  max-width: 430px;
  font-size: 0.98rem;
  line-height: 1.62;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 3rem;
}

.login-brand-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.login-brand-stat {
  min-height: 88px;
  padding: 1.05rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: none;
}

.login-brand-stat h3 {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.62rem;
  letter-spacing: -0.015em;
}

.login-brand-stat span {
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
}

/* ========================================================= PAINEL DIREITO ========================================================= */

.login-form-panel {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 87% 12%, rgba(0, 95, 85, 0.10), transparent 20%),
    #f8faf9;
  padding: 2.6rem 3.2rem;
}

.login-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #607083;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.login-back-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}

.login-back-button:hover {
  color: var(--green);
  transform: translateX(-2px);
}

.login-form-area {
  min-height: calc(100vh - 5.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================= CARD LOGIN ========================================================= */

.login-card {
  width: 100%;
  max-width: var(--card-width);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.15rem 2.2rem 2rem;
}

.login-card-line {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 99px;
  background: var(--green);
  margin-bottom: 1.55rem;
}

.login-card h2 {
  max-width: 340px;
  font-size: clamp(2rem, 3vw, 2.28rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.032em;
  color: var(--text-primary);
  margin-bottom: 0.95rem;
}

.login-description {
  max-width: 350px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ========================================================= FORM ========================================================= */

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-form input {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  background: var(--input-bg);
  color: var(--text-primary);
  outline: none;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
  color: var(--placeholder);
}

.login-form input:focus {
  border-color: rgba(0, 95, 85, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 95, 85, 0.08);
}

/* ========================================================= LINKS ========================================================= */

.forgot-password {
  width: fit-content;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: -0.1rem 0 1.35rem;
  transition: opacity 0.2s ease;
}

.forgot-password:hover {
  opacity: 0.75;
}

.cadastro-link {
  margin-top: 1.45rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cadastro-link a {
  font-weight: 700;
  color: var(--green-dark);
}

.cadastro-link a:hover {
  opacity: 0.8;
}

/* ========================================================= BOTÃO PADRÃO ========================================================= */

.login-form button {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: var(--radius-button);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ========================================================= BOTÃO ENTRAR ========================================================= */

.login-submit-button {
  background: var(--green-dark);
  color: #ffffff;
}

.login-submit-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.login-submit-button:hover {
  background: #004f40;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 88, 70, 0.18);
}

/* ========================================================= BOTÃO GOOGLE ========================================================= */

.login-google-button {
  margin-top: 0.9rem;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--input-border) !important;
  box-shadow: none;
  gap: 0.65rem;
}

.login-google-button:hover {
  background: #f8faf9;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(31, 42, 53, 0.06);
}

.google-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.google-icon img {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  display: block;
}

/* ========================================================= RESPONSIVO ========================================================= */

@media (max-width: 1100px) {
  .login-page {
    grid-template-columns: 50% 50%;
  }

  .login-brand-panel {
    padding: 3rem;
  }

  .login-form-panel {
    padding: 2.2rem;
  }

  .login-brand-content {
    width: min(100%, 405px);
    transform: translate(-4px, -8px);
  }

  .login-brand-content h1 {
    font-size: clamp(2.2rem, 4vw, 2.95rem);
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
    padding: 3.5rem 2rem;
  }

  .login-brand-content {
    width: min(100%, 520px);
    text-align: left;
    transform: none;
  }

  .login-form-panel {
    min-height: auto;
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .login-form-area {
    min-height: auto;
    padding-top: 2rem;
  }
}

@media (max-width: 767px) {
  .login-brand-panel {
    padding: 3rem 1.25rem;
  }

  .login-brand-line {
    width: 52px;
    height: 3px;
    margin-bottom: 1.5rem;
  }

  .login-brand-content h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .login-brand-content p {
    display: none;
  }

  .login-brand-stats {
    display: none;
  }

  .login-form-panel {
    padding: 1.25rem 1rem 2rem;
  }

  .login-card {
    max-width: 100%;
    padding: 1.65rem 1.2rem 1.6rem;
    border-radius: 14px;
  }

  .login-card-line {
    width: 42px;
    height: 3px;
    margin-bottom: 1.25rem;
  }

  .login-card h2 {
    font-size: clamp(1.75rem, 8vw, 2.05rem);
  }

  .login-description {
    font-size: 0.88rem;
    margin-bottom: 1.55rem;
  }

  .login-form input {
    height: 43px;
    font-size: 0.88rem;
    margin-bottom: 1.05rem;
  }

  .forgot-password {
    font-size: 0.84rem;
    margin-bottom: 1.1rem;
  }

  .login-form button {
    height: 43px;
  }

  .login-google-button {
    margin-top: 0.85rem;
  }

  .cadastro-link {
    font-size: 0.84rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 420px) {
  .login-brand-panel {
    padding: 2.4rem 1rem;
  }

  .login-brand-content h1 {
    font-size: 2rem;
  }

  .login-brand-content p {
    display: none;
  }

  .login-brand-stats {
    display: none;
  }

  .login-brand-stat {
    min-height: 74px;
  }

  .login-card {
    padding: 1.45rem 1rem 1.45rem;
  }

  .login-card h2 {
    font-size: 1.72rem;
  }

  .login-description,
  .login-form input,
  .forgot-password,
  .cadastro-link {
    font-size: 0.82rem;
  }
}