/* Tela de login — mesmo visual do login do EBI (app2.ccbregionalitapevi.com.br) */

:root {
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --err: #dc2626;
}

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

body {
  background: #f1f5f9;
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sac-card {
  width: min(500px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

.sac-header {
  background: var(--brand);
  padding: 40px 30px;
  color: #fff;
}

.sac-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px;
  display: block;
  filter: brightness(0) invert(1); /* logo em traço: força branco */
}

.sac-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sac-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.4;
}

.sac-body {
  padding: 40px;
}

.sac-form .form-group {
  margin-bottom: 15px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s;
}

.sac-form .form-group:focus-within {
  border-color: var(--brand);
}

.sac-form .form-group.erro {
  border-color: var(--err);
}

.input-icon-box {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-right: 1px solid var(--line);
  color: var(--brand);
  border-radius: 10px 0 0 10px;
  flex-shrink: 0;
}

.sac-form input {
  flex: 1;
  min-width: 0;
  border: none;
  height: 52px;
  padding: 0 15px;
  font-size: 15px;
  font-family: inherit;
  color: #334155;
  background: transparent;
  outline: none;
}

.password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  border: none;
  background: none;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 0 10px 10px 0;
  transition: all 0.2s;
}

.password-toggle:hover,
.password-toggle.ativo {
  color: var(--brand);
  background: #f8fafc;
}

.login-feedback {
  color: var(--err);
  font-size: 14px;
  min-height: 20px;
}

.sac-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-escuro) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sac-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-claro) 0%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px var(--brand-sombra);
}

.sac-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.sac-footer-links {
  margin-top: 25px;
  font-size: 13px;
  color: var(--muted);
}

.sac-btn-secondary {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.sac-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.sac-page-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.footer-ccb {
  text-decoration: underline;
}

.footer-region {
  font-weight: 700;
}

@media (max-width: 480px) {
  .sac-header {
    padding: 30px 20px;
  }
  .sac-logo {
    max-width: 140px;
    margin-bottom: 12px;
  }
  .sac-title {
    font-size: 22px;
  }
  .sac-subtitle {
    font-size: 14px;
  }
  .sac-body {
    padding: 24px 20px;
  }
  .input-icon-box {
    width: 46px;
  }
}
