/* Reset, tokens e elementos base agora vêm de tokens.css + base.css.
   Este arquivo cobre apenas estilos específicos da tela de login. */

/* Layout */
.page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 0;
}

/* Left panel */
.left-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px 40px 40px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand-logo {
  width: 220px;
  object-fit: contain;
}

.brand-tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.4px;
}

/* Divider */
.divider {
  width: 1px;
  height: 260px;
  background: var(--border);
  flex-shrink: 0;
}

/* Right panel */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px 60px;
}

.form-wrap {
  width: 100%;
  max-width: 360px;
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* Fields */
.field-group {
  margin-bottom: 14px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 46px;
}

input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

input::placeholder {
  color: #b0b0b8;
}

input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

input.invalid {
  border-color: var(--error);
}

input.invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-pass svg {
  width: 18px;
  height: 18px;
}

.toggle-pass:hover {
  color: var(--text-primary);
}

.error-msg {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  min-height: 14px;
}

/* Actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.forgot-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--accent);
}

/* No password notice */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border: 1.5px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 20px;
}

.notice[hidden] { display: none; }

.notice svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice p {
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

/* ── New password overlay (usa .zh-modal-* de components.css) ─ */
.login-modal-body {
  padding: 44px 40px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .page {
    flex-direction: column;
    gap: 40px;
  }

  .divider {
    width: 200px;
    height: 1px;
  }

  .left-panel,
  .right-panel {
    padding: 0;
    justify-content: flex-start;
  }

  .brand-tagline {
    font-size: 18px;
  }

  .form-wrap {
    max-width: 100%;
  }
}
