/* Reset básico */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
}

/* Shell general: ocupa toda la pantalla y centra el contenido */
.oc-app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Fondo degradado naranja → blanco */
.oc-background-glass {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #ff6a00 0%, #ffb76b 28%, #ffffff 70%);
  opacity: 0.95;
  z-index: -1;
}

/* Contenedor que solo muestra la tarjeta, siempre centrada */
.oc-login-only-card {
  width: 100%;
  max-width: 420px;
}

/* TARJETA LOGIN */
.oc-login-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 14px 16px 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(248, 250, 252, 0.9);
}

/* Cabecera de la tarjeta */
.oc-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.oc-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ffb76b);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.oc-logo-text {
  display: flex;
  flex-direction: column;
}

.oc-logo-text-main {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.oc-logo-text-sub {
  font-size: 0.78rem;
  color: #6b7280;
}

/* Cuerpo del formulario */
.oc-login-body {
  margin-top: 4px;
}

.oc-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Campos */
.oc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.oc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
}

.oc-label-secondary {
  font-size: 0.7rem;
  color: #9ca3af;
}

.oc-input-shell {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.oc-input-shell.focused {
  border-color: #ff6a00;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.4);
  background: #ffffff;
}

.oc-input-icon {
  font-size: 0.8rem;
  margin-right: 6px;
  color: #9ca3af;
}

.oc-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.85rem;
  background: transparent;
  color: #111827;
}

/* FILA RECORDAR + OLVIDASTE CONTRASEÑA */
.oc-login-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

/* Checkbox minimalista */
.oc-checkbox {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ff6a00;
  margin-right: 6px;
}

.oc-remember span {
  font-size: 0.78rem;
  color: #374151;
}

.oc-forgot {
  color: #f97316;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.78rem;
}

.oc-forgot:hover {
  text-decoration: underline;
}

/* Botón principal */
.oc-login-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oc-btn-primary {
  border: none;
  outline: none;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb76b, #ff6a00);
  box-shadow: 0 14px 26px rgba(148, 64, 10, 0.6);
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.oc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(148, 64, 10, 0.7);
  filter: brightness(1.03);
}

.oc-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(148, 64, 10, 0.65);
}

.oc-btn-primary span.oc-arrow {
  font-size: 1.1rem;
}

/* Frase bajo el botón */
.oc-login-muted {
  margin-top: 4px;
  font-size: 0.76rem;
  color: #4b5563;
}

/* Responsive: que no haya scroll tonto y se adapte bien */
@media (max-width: 480px) {
  .oc-app-shell {
    padding: 10px;
  }
  .oc-login-card {
    padding: 12px 12px 14px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
  }
  .oc-logo-text-main {
    font-size: 0.95rem;
  }
  .oc-logo-text-sub {
    font-size: 0.74rem;
  }
}
