* { box-sizing: border-box; }

:root {
  --accent:        #0e8c99;
  --accent-bright: #1bb3c2;
  --accent-ink:    #04313a;
  --petrol:        #354a5f;
}

html, body { min-height: 100%; margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceff3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

/* ── card ── */
.co-card {
  width: 100%;
  max-width: 560px;
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde2e8;
  min-height: 430px;
}

/* ── painel de marca (esquerdo) ── */
.co-brand {
  flex: 0 0 42%;
  background: var(--petrol);
  color: #fff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.co-platform {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9fb1c0;
  text-transform: uppercase;
}

.co-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-wordmark i    { font-size: 30px; color: var(--accent-bright); }
.co-wordmark span { font-size: 30px; font-weight: 500; line-height: 1; }

.co-rule {
  width: 42px;
  height: 3px;
  background: var(--accent-bright);
  margin: 14px 0 12px;
}

.co-tag     { font-size: 14px; color: #c3d0db; line-height: 1.6; }
.co-restrito{ font-size: 12px; color: #7f93a3; }

/* ── painel de formulário (direito) ── */
.co-form {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.co-title { font-size: 20px; font-weight: 500; color: #1f2933; margin: 0 0 4px; }
.co-sub   { font-size: 13px; color: #5b6b7a;  margin: 0 0 22px; }
.co-label { display: block; font-size: 13px; color: #5b6b7a; margin: 0 0 6px; }

/* ── campos ── */
.co-field {
  position: relative;
  margin: 0 0 16px;
}
.co-field > i.left {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9aa7b2;
  pointer-events: none;
}

.co-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #cfd6dd;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2933;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.co-input:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(27, 179, 194, 0.18);
}

/* chevron no select */
select.co-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa7b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ── botão ── */
.co-btn {
  width: 100%;
  height: 42px;
  background: var(--accent-bright);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}
.co-btn:hover { background: var(--accent); color: #fff; }

/* ── rodapé e erro ── */
.co-foot {
  font-size: 12px;
  color: #9aa7b2;
  margin: 20px 0 0;
  text-align: center;
}

.login-error {
  background: #fff1f1;
  border: 1px solid #efb8b8;
  color: #9f1c1c;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ── etapa 2: grid de empresas ── */
#companyGrid {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 4px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}

.co-company-row {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 9px 10px 9px 12px;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  cursor: pointer;
  gap: 8px;
  transition: background .12s, border-color .12s;
  user-select: none;
  min-width: 0;
}
.co-company-row:hover {
  background: rgba(14, 140, 153, .07);
  border-color: var(--accent-bright);
}

.co-company-arrow {
  font-size: 12px;
  color: #e7b53c;
  opacity: 0;
  transition: opacity .15s;
  flex: 0 0 auto;
}
.co-company-row:hover .co-company-arrow { opacity: 1; }

.co-company-info {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.co-company-name {
  font-size: 13px;
  font-weight: 500;
  color: #1f2933;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.co-company-meta {
  font-size: 11px;
  color: #7a8c9a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.co-company-badge {
  font-size: 11px;
  background: rgba(14, 140, 153, .1);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── botão voltar ── */
.co-btn-ghost {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 0 0;
  display: block;
}
.co-btn-ghost:hover { color: var(--accent-bright); text-decoration: underline; }

/* ── responsivo ── */
@media (max-width: 520px) {
  .co-card  { flex-direction: column; min-height: 0; }
  .co-brand { flex: none; }
}
