body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #f4f5f7;
      margin: 0;
      padding: 0;
      display: flex;
      min-height: 100vh;
      align-items: center;
      justify-content: center;
    }
    .card {
      background: #ffffff;
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
      max-width: 480px;
      width: 100%;
    }
    h1 {
      font-size: 1.5rem;
      margin-top: 0;
      margin-bottom: 0.5rem;
    }
    p {
      margin-top: 0;
      color: #555;
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
    }
    label {
      display: block;
      font-weight: 600;
      margin-bottom: 0.3rem;
    }
    input[type="file"],
    textarea {
      display: block;
      width: 100%;
      margin-bottom: 1rem;
      font-size: 0.95rem;
      font-family: inherit;
      box-sizing: border-box;
    }
    textarea {
      min-height: 70px;
      resize: vertical;
      padding: 0.4rem 0.5rem;
    }
    button {
      border: none;
      border-radius: 999px;
      padding: 0.6rem 1.4rem;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      background: #4caf50;
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }
    button[disabled] {
      opacity: 0.6;
      cursor: default;
    }
    .status {
      margin-top: 1rem;
      font-size: 0.9rem;
      min-height: 1.1rem;
    }
    .status.ok {
      color: #2e7d32;
    }
    .status.error {
      color: #c62828;
    }

    :root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;

  --mint: #4fe3c1;          /* verde menta */
  --mint2: #35c9a9;
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(1100px 500px at 20% 0%, rgba(79,227,193,.20), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(79,227,193,.10), transparent 55%),
    linear-gradient(180deg, #081022, #060a14 70%);
  min-height: 100vh;
  max-width: 940px;
  margin: 0 auto;
  padding: 52px 20px 36px;
  gap: 36px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(6,10,20,.55);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand__logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 800;
  letter-spacing: .5px;
  color: #062218;
  background: linear-gradient(135deg, var(--mint), var(--mint2));
  box-shadow: 0 10px 30px rgba(79,227,193,.22);
}
.brand__name{
  font-size: 16px;
  font-weight: 800;
}
.brand__tag{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 18px 34px;
}

.hero{
  padding: 18px 4px 10px;
}
.hero h1{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero__subtitle{
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card{
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card__title{
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card__text{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
}

.card__hint{
  margin: 12px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--mint), var(--mint2));
  color: #062218;
  border-color: rgba(79,227,193,.38);
}
.btn--primary:hover{ filter: brightness(1.04); }

.btn--ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.09);
}

.label{
  display:block;
  margin: 4px 0 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.70);
}

.inputRow{
  display:flex;
  gap: 10px;
  align-items: stretch;
}

.input{
  flex: 1;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text);
  outline: none;
}
.input::placeholder{ color: rgba(255,255,255,.45); }
.input:focus{
  border-color: rgba(79,227,193,.55);
  box-shadow: 0 0 0 4px rgba(79,227,193,.12);
}

.footer{
  margin-top: 20px;
  padding: 14px 4px;
  color: rgba(255,255,255,.62);
  font-size: 12.5px;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.footer__dot{ opacity: .5; }
.footer__muted{ opacity: .9; }

@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
}

.page--center{
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
}

.card--narrow{
  max-width: 560px;
  margin: 0 auto;
}

.title{
  margin: 12px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.lead{
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.actions{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hint{
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.pill--warn{
  border-color: rgba(255, 193, 7, .25);
  background: rgba(255, 193, 7, .10);
}

.footer--center{
  justify-content: center;
  margin-top: 16px;
}
.spinnerRow{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 12px;
}

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: rgba(79,227,193,.95);
  animation: spin .8s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}

.progress{
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}

.progress__bar{
  height: 100%;
  width: 55%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,227,193,.35), rgba(79,227,193,.95));
  animation: load 1.3s ease-in-out infinite;
}

@keyframes load{
  0%   { transform: translateX(-70%); }
  50%  { transform: translateX(40%); }
  100% { transform: translateX(140%); }
}

.card--wide{
  max-width: 720px;
  margin: 0 auto;
}

.form{
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fileInput{
  padding: 10px;
  background: rgba(0,0,0,.25);
}

.textarea{
  min-height: 90px;
  resize: vertical;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px;
  color: var(--text);
  outline: none;
}

.textarea:focus{
  border-color: rgba(79,227,193,.55);
  box-shadow: 0 0 0 4px rgba(79,227,193,.12);
}

.btn--block{
  width: 100%;
}

.status{
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
}

/* Select del modo */
select.input,
.form select,
#mode {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  color: #ffffff;            /* gris oscuro, muy legible */
  background-color: rgba(0,0,0,.25); /* fondo blanco */
  border: 1px solid rgba(255,255,255,.12); /* gris suave */
  border-radius: 10px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;

  /* flecha personalizada */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(79,227,193,.55) 50%),
    linear-gradient(135deg,rgba(79,227,193,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.8rem;
}

select.input:hover,
.form select:hover,
#mode:hover {
  border-color: rgba(79,227,193,.55);      /* verde tipo mint */
  background-color:rgba(0,0,0,.25);  /* blanco con toque verdoso */
}

select.input:focus,
.form select:focus,
#mode:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background-color:rgba(0,0,0,.25);
}

/* Opciones del desplegable */
select.input option,
.form select option,
#mode option {
  color: #ffffff;
  background-color: rgba(0,0,0,.25);
}

/* Inputs de login (email + password) */
#emailInput,
#passwordInput {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Placeholder */
#emailInput::placeholder,
#passwordInput::placeholder {
  color: rgba(255,255,255,.45);
}

/* Hover */
#emailInput:hover,
#passwordInput:hover {
  border-color: rgba(79,227,193,.4);
}

/* Focus (cuando haces click) */
#emailInput:focus,
#passwordInput:focus {
  border-color: rgba(79,227,193,.7);
  box-shadow: 0 0 0 4px rgba(79,227,193,.15);
  background: rgba(0,0,0,.35);
  outline: none;
}

/* Extra: separación si están uno debajo del otro */
#passwordInput {
  margin-bottom: 6px;
}

/* ============================================================
   Página de login
   ============================================================ */
.login-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 88px); /* 88px = body padding top+bottom */
  padding: 24px 18px 32px;
  gap: 20px;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Contenedor del logo: sustituir el texto "GR" por un <img> cuando haya logo */
.login-header__logo {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--mint), var(--mint2));
  color: #062218;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 40px rgba(79,227,193,.28);
  overflow: hidden;
  flex-shrink: 0;
}

.login-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-header__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
