:root {
  --primary: #00b0ad;
  --background: #f4f6f8;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --white: #ffffff;
  --blue: #0a2ad6;
}

/* RESET */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--background);
}

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 logo sempre no canto */
}

.header-logo {
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}

/* ===== PAGE ===== */
.page {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
}

/* ===== LAYOUT ===== */
.login-layout {
  width: 100%;
  max-width: 1100px;
  background: var(--white);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}

/* ===== LADO ESQUERDO ===== */
.login-info {
  background: var(--primary);
  color: #fff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-info h1 {
  font-size: 32px;
  line-height: 1.2;
}

.login-info p {
  opacity: .9;
}

/* ÍCONE */
.exam-paper {
  width: 140px;
  height: 175px;
  background: rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.exam-paper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: var(--primary);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.exam-plus {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  position: relative;
}

.exam-plus::before,
.exam-plus::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.7);
}

.exam-plus::before {
  width: 32px;
  height: 5px;
  top: 14px;
}

.exam-plus::after {
  width: 5px;
  height: 32px;
  left: 14px;
}

.exam-line {
  height: 8px;
  background: rgba(255,255,255,.6);
  border-radius: 6px;
  margin-bottom: 8px;
}

.exam-line.small {
  width: 70%;
}

/* ===== LADO DIREITO ===== */
.login-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* Mobile logo */
.mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 20px;
}

.mobile-logo img {
  max-width: 140px;
}

/* Texto */
.login-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  margin-bottom: 6px;
}

.help-link {
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 14px;
}

.field {
  margin-bottom: 12px;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 11px 14px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

input:focus {
  outline: none;
  border-color: var(--blue);
}

.primary-btn {
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.error-message {
  color: #dc2626;
  margin-bottom: 10px;
}

.captcha {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-info {
    display: none;
  }

  .mobile-logo {
    display: block;
  }

  .login-card {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }
}
