/* /digital/css/login.css */
:root {
  --bg:         #f0f1f4;
  --card:       #ffffff;
  --text:       #1a1a1a;
  --border:     #e2e5ea;
  --accent:     #cc0000;
  --accent-h:   #aa0000;
  --accent-a:   #900000;
  --danger-bg:  #fff4f4;
  --danger-bd:  #f5c2c2;
  --danger-tx:  #991a1a;
  --label:      #bbb;
  --muted:      #aaa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

/* Override global.css */
body {
  background-color: var(--bg) !important;
  background-image: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh;
  padding: 24px 0;
  margin: 0 !important;
}

.login-card {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 420px !important;
  min-width: 320px !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 0.5px solid rgba(0,0,0,0.08) !important;
  border-bottom: 0.5px solid rgba(0,0,0,0.08) !important;
}

@media (min-width: 460px) {
  body { padding: 24px 12px !important; }
  .login-card {
    border-radius: 16px !important;
    border: 0.5px solid rgba(0,0,0,0.08) !important;
  }
}
.login-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 390px;
  min-width: 320px;
  min-height: 420px;
  background: var(--card);
  border-radius: 16px;
  border: 0.5px solid rgba(0,0,0,0.08);
  overflow: hidden;
  font-size: 14px;
}

/* Cabeçalho */
.login-card::before {
  content: '';
  display: block;
}

.login-header {
  padding: 28px 24px 20px;
  border-bottom: 0.5px solid #f0f0f0;
}

.login-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.login-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-titulo {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 3px;
}

.login-sub {
  font-size: 12px;
  color: var(--muted);
}

/* Corpo */
.login-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Esconde os <br/> do HTML original */
.login-card br { display: none; }

/* Labels inline (texto solto no form) */
.login-card label,
.login-body label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

/* Remove estilo padrão do form */
.login-card form {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  background: #f9f9f9;
  outline: none;
  transition: border-color .15s, background .15s;
  display: block;
  margin-top: 6px;
  margin-bottom: 4px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  background: #fff;
}

/* Botão */
button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}

button[type="submit"]:hover  { background: var(--accent-h); }
button[type="submit"]:active { background: var(--accent-a); }

/* Alerta */
.alert {
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
  color: var(--danger-tx);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}

.alert strong { font-weight: 600; }