:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #ea5b0c;
  --accent-hover: #b64508;
  --muted: #6b7280;
  --border: #e6e9ee;
  --radius: 12px;
}

.errorDiv {
  border: 1px solid red;
  background-color: rgba(219, 67, 67, 0.623);
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-image: url('../img/login.jpg');
  color: #111827;
  background-size: cover;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-wrap {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.split {
  display: flex;
  width: 100%;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.left {
  width: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(11, 118, 239, 0.03), transparent 60%);
  background-color: white;
}

.logo {
  margin-bottom: 24px;
}

.logo img {
  width: 100%;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input[type="email"],
input[type="password"] {
  padding: 12px 14px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(11, 118, 239, 0.08);
}

/* Botones */
.actions {
  margin-top: 8px;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 6px 18px rgba(11, 118, 239, 0.12);
  transition: background 0.2s;
}

button.primary:hover {
  background: var(--accent-hover);
}

button.secondary {
  background: #fff;
  color: var(--accent);
  border: none;
  padding: 12px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 6px 18px rgba(11, 118, 239, 0.12);
  transition: background 0.2s;
  border: 1px solid var(--accent);
}

/* Responsive */
@media (max-width: 820px) {
  body {
    padding: 16px;
    justify-content: center;
    align-items: center;
  }

  .split {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .left, .right {
    width: 100%;
  }

  .left {
    padding: 28px;
  }

  .right {
    min-height: 240px;
  }
}
