:root {
  --navy: #0B2242;
  --gold: #F7AC23;
  --gray: #A6A6A6;
  --dark-gray: #404040;
  --white: #FFFFFF;
  --background: #F5F7FA;
  --border: #E2E7EE;
  --text: #243247;
  --muted: #748094;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(11, 34, 66, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.access-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Painel de identidade da marca */

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 48px clamp(28px, 5vw, 76px);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%,
      rgba(247, 172, 35, 0.15),
      transparent 28%),
    linear-gradient(145deg, #102D52 0%, var(--navy) 70%, #07172E 100%);
}

.brand-panel::before {
  position: absolute;
  right: -110px;
  bottom: 8%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.brand-panel::after {
  position: absolute;
  right: -45px;
  bottom: 16%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(247, 172, 35, 0.18);
  border-radius: 50%;
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: var(--gold);
  font-size: 28px;
  font-weight: 700;
}

.brand-content {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  margin: 60px auto;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
}

.brand-content h1 {
  max-width: 530px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -1.5px;
}

.brand-content h1 span {
  color: var(--gold);
}

.brand-content>p {
  max-width: 430px;
  margin-top: 24px;
  color: #D0D9E5;
  font-size: 14px;
  line-height: 1.9;
}

.brand-message {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 42px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.message-mark {
  color: var(--gold);
  font-size: 39px;
  line-height: 1;
}

.brand-message p {
  font-size: 13px;
  font-weight: 500;
}

.panel-footer {
  position: relative;
  z-index: 1;
  color: #AEBBCD;
  font-size: 11px;
}

.mobile-brand {
  display: none;
}

/* Painel de acesso */

.form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(24px, 5vw, 76px) 22px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  margin: auto 0;
}

.form-heading {
  margin-bottom: 34px;
}

.form-heading h2 {
  color: var(--navy);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 600;
  letter-spacing: -1px;
}

.form-heading>p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--dark-gray);
  font-size: 12px;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-link {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  color: #A96B00;
  text-decoration: underline;
}

.form-group input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--white);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: #A6AFBC;
}

.form-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 34, 66, 0.08);
}

.primary-button,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.primary-button {
  margin-top: 8px;
  border: 1px solid var(--gold);
  color: var(--navy);
  background: var(--gold);
}

.primary-button span {
  font-size: 19px;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #FFC04C;
}

.secondary-button {
  border: 1px solid var(--border);
  color: var(--dark-gray);
  background: var(--white);
}

.secondary-button:hover {
  background: #F0F3F7;
}

.google-mark {
  color: #4285F4;
  font-size: 18px;
  font-weight: 700;
}

.form-feedback {
  min-height: 0;
  margin-top: 8px;
  color: #A33B32;
  font-size: 12px;
  line-height: 1.6;
}

.separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 21px 0;
  color: var(--gray);
  font-size: 11px;
}

.separator::before,
.separator::after {
  flex: 1;
  height: 1px;
  background: var(--border);
  content: "";
}

.signup-prompt {
  margin-top: 27px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.signup-prompt .text-link {
  margin-left: 4px;
}

.security-note {
  margin-top: 35px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  line-height: 1.8;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  max-width: 410px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

/* Ajustes para telas menores */

@media (max-width: 900px) {
  .access-page {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .brand-panel {
    padding: 36px 28px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-content h1 {
    font-size: 32px;
  }

  .form-panel {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (max-width: 680px) {
  .access-page {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    min-height: 100vh;
    padding: 28px 23px 20px;
  }

  .login-card {
    max-width: 440px;
    margin: auto 0;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
  }

  .mobile-brand .brand-symbol {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .form-heading {
    margin-bottom: 29px;
  }

  .form-heading h2 {
    font-size: 28px;
  }

  .security-note {
    margin-top: 28px;
  }

  .page-footer {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.form-group select {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 34, 66, 0.08);
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.terms-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.terms-option input {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.terms-option .text-link {
  font-size: inherit;
}

/* Logo oficial ezEducation */

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  object-fit: contain;
}

.mobile-brand-logo {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
}

.brand-logo {
  width: 180px;
  height: auto;
  display: block;
}

.avatar-perfil {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--navy, #0B2242);
  background: #e8eef6;
  border: 2px solid white;
  flex: 0 0 auto;
}

.input-foto {
  font-family: inherit;
  font-size: 14px;
}

.input-foto::file-selector-button {
  background-color: #F7AC23;
  color: #0B2242;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

.input-foto::file-selector-button:hover {
  background-color: #e59b15;
}

#botao-remover-foto {
  background-color: transparent;
  color: #0B2242;
  border: 2px solid #F7AC23;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#botao-remover-foto:hover {
  background-color: #F7AC23;
  color: #0B2242;
}

#botao-remover-foto,
#botao-remover-foto:hover {
  background-color: #F7AC23 !important;
  color: #0B2242 !important;
  border: 2px solid #F7AC23;
}

.brand-logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 12px 20px;
  border-radius: 14px;
}