:root {
  --bg-top: #f6f0ea;
  --bg-bottom: #e9e0d8;
  --card-bg: #ffffff;
  --text-main: #2b2452;
  --text-muted: #6e6a84;
  --accent: #2b2452;
  --accent-hover: #1d1838;
  --border: #ddd6d1;
  --danger: #c62828;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
}

body {
  background:
    radial-gradient(circle at 84% 10%, rgba(229, 57, 53, 0.09) 0%, transparent 35%),
    radial-gradient(circle at 16% 86%, rgba(43, 36, 82, 0.1) 0%, transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0px, rgba(255, 255, 255, 0.22) 1px, transparent 1px, transparent 10px),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border: 1px solid #d7cec7;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(43, 36, 82, 0.16);
  padding: 28px;
}

.login-brand {
  text-align: center;
  margin-bottom: 16px;
}

.login-brand img {
  width: min(210px, 70%);
  height: auto;
  object-fit: contain;
}

.login-header {
  text-align: center;
  margin-bottom: 18px;
}

.login-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.login-header h1 {
  margin: 8px 0 6px;
  font-size: 1.5rem;
  color: var(--accent);
}

.login-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 0.86rem;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.93rem;
  background: #fbfcff;
}

.login-form input:focus {
  outline: 2px solid rgba(15, 61, 117, 0.18);
  border-color: var(--accent);
  background: #ffffff;
}

.login-error {
  margin: 2px 0 0;
  border: 1px solid #f1b6bb;
  background: #fff3f4;
  color: var(--danger);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.domain-hint {
  margin: 2px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.boton-login {
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: var(--accent);
  transition: background 0.2s ease;
}

.boton-login:hover {
  background: var(--accent-hover);
}

.login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.login-divider span {
  margin: 0 10px;
}

.boton-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 700;
  color: #1f2937;
  background: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.boton-google:hover {
  background: #f8fafc;
  border-color: #bfc9d9;
}

.google-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: #db4437;
}

.signup-link {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.86rem;
}

.signup-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}
